{"id":20834967,"url":"https://github.com/hstreamdb/terraform","last_synced_at":"2026-03-27T04:47:02.125Z","repository":{"id":39800707,"uuid":"484989010","full_name":"hstreamdb/terraform","owner":"hstreamdb","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-30T02:11:55.000Z","size":2472,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T21:55:00.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hstreamdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T09:57:54.000Z","updated_at":"2022-09-22T08:44:53.000Z","dependencies_parsed_at":"2023-01-17T21:31:57.525Z","dependency_job_id":null,"html_url":"https://github.com/hstreamdb/terraform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fterraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fterraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fterraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fterraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hstreamdb","download_url":"https://codeload.github.com/hstreamdb/terraform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243188234,"owners_count":20250457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T00:22:13.195Z","updated_at":"2026-03-19T17:45:11.352Z","avatar_url":"https://github.com/hstreamdb.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform\n\nDeploy HStreamDB cluster on AWS/Ali-Cloud with terraform.\n\n## Usage\n\n### Clone the repository\n\n```shell\ngit clone git@github.com:hstreamdb/terraform.git \u0026\u0026 cd terraform\n```\n\n### Download deployment-tool\n\n```shell\n./install.sh\n```\n\n- The binary is placed in `./config` directory.\n\n### Update terraform.tfvars\n\nUpdate the `terraform.tvar` file to meet your deployment requirements.\n\n- For ali-cloud, the path is `./aliyun/terraform.tfvars`\n- For aws, the path is `./aws/terraform.tfvars`\n\n### Update `topology.json`\n\nEach Component has three fields:\n\n- `count`: number of the instances of the component\n- `instance_type`: specifications of the cloud server on which the instance is deployed\n- `image`: docker image of the component\n\n#### `center` server\n\nThe deployment process will be synchronized to the cloud server specified by the `center` field, which has been configured SSH mutual trust with other servers.\n\nNo need to have a separate node for the `center` server\n\n### Set up cluster\n\n```ssh\n./tool.py start -k \u003ckey-pair\u003e --user \u003cusername\u003e -c ali-cloud\n```\n\n- fill in the key-pair which used to connect to connect to `center` server with SSH\n- fill in the username which used to log in `center` server\n- use `-c` to specified which cloud you want to deploy to, the valid value should be `-c ali-cloud` or `-c aws`\n\n### Remove cluster\n\nRemove cluster will stop all started instances and delete all related records.\n\n```shell\n./tool.py remove -k \u003ckey-pair\u003e --user \u003cusername\u003e -c ali-cloud\n```\n\n### Destroy cluster\n\nDestroy cluster uses terraform to destroy all previously created infrastructure.\n\n```shell\n./tool.py destroy -c ali-cloud\n```\n\n- use `-c` to specified which cloud you want to deploy to, the valid value should be `-c ali-cloud` or `-c aws`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstreamdb%2Fterraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhstreamdb%2Fterraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstreamdb%2Fterraform/lists"}