{"id":13450449,"url":"https://github.com/nextrevision/terraform-rancher-ha-example","last_synced_at":"2025-04-19T18:51:52.466Z","repository":{"id":150569470,"uuid":"58054384","full_name":"nextrevision/terraform-rancher-ha-example","owner":"nextrevision","description":"Terraform files for deploying a Rancher HA cluster in AWS","archived":false,"fork":false,"pushed_at":"2017-08-10T13:40:32.000Z","size":18,"stargazers_count":61,"open_issues_count":0,"forks_count":37,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T11:51:46.129Z","etag":null,"topics":["docker","rancher","terraform"],"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/nextrevision.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-04T13:29:36.000Z","updated_at":"2023-02-22T02:35:15.000Z","dependencies_parsed_at":"2023-07-29T23:01:07.569Z","dependency_job_id":null,"html_url":"https://github.com/nextrevision/terraform-rancher-ha-example","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextrevision%2Fterraform-rancher-ha-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextrevision%2Fterraform-rancher-ha-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextrevision%2Fterraform-rancher-ha-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextrevision%2Fterraform-rancher-ha-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextrevision","download_url":"https://codeload.github.com/nextrevision/terraform-rancher-ha-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249239233,"owners_count":21235820,"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":["docker","rancher","terraform"],"created_at":"2024-07-31T07:00:34.741Z","updated_at":"2025-04-16T12:30:36.383Z","avatar_url":"https://github.com/nextrevision.png","language":"HCL","funding_links":[],"categories":["HCL","Rancher 1.0"],"sub_categories":["Community projects 1.0"],"readme":"# terraform-rancher-ha-example\nTerraform files for deploying a Rancher HA cluster in AWS\n\n\u003e Update: since v1.2.0 simplified the HA deployment process, master reflects the latest way to deploy Rancher HA. If you are looking for the previous code, it is tagged under [v1.0.0](https://github.com/nextrevision/terraform-rancher-ha-example/tree/v1.0.0).\n\nThese files are meant as a companion to the following blog post:\n\n[https://thisendout.com/2016/12/10/update-deploying-rancher-in-production-aws-terraform-rancheros/](https://thisendout.com/2016/12/10/update-deploying-rancher-in-production-aws-terraform-rancheros/)\n\n## Usage\n\nClone this repo:\n\n```\ngit clone https://github.com/nextrevision/terraform-rancher-ha-example\ncd terraform-rancher-ha-example\n```\n\nEdit the `terraform.tfvars` file:\n\n```\n# AWS key for the instances\nkey_name = \"rancher-example\"\n\n# RDS database password\ndb_pass = \"rancherdbpass\"\n\n# To enable SSL termination on the ELBs, uncomment the lines below.\n#enable_https = true\n#cert_body = \"certs/cert1.pem\"              # Signed Certificate\n#cert_private_key = \"certs/privkey1.pem\"    # Certificate Private Key\n#cert_chain = \"certs/chain1.pem\"            # CA chain\n```\n\nTo create the cluster:\n\n```\nterraform apply\n```\n\nTo destroy:\n\n```\nterraform destroy\n```\n\n## Variables\n\n### AWS Infrastructure\n* **region**: AWS region (default: `us-east-1`)\n* **count**: number of HA servers to deploy (default: `3`)\n* **name_prefix**: prefix for all AWS resource names (default: `rancher-ha`)\n* **ami**: instance AMI ID (default: `ami-dfdff3c8`; RancherOS in us-east-1)\n* **key_name**: SSH key name in your AWS account for AWS instances (required)\n* **instance_type**: AWS instance type (default: `t2.large` for RAM requirement)\n* **root_volume_size**: size in GB of the instance root volume (default: `16`)\n* **vpc_cidr**: subnet in CIDR format to assign to the VPC (default: `192.168.199.0/24`)\n* **subnet_cidrs**: list of subnet ranges (3 required) (default: `[\"192.168.199.0/26\", \"192.168.199.64/26\", \"192.168.199.128/26\"`)\n* **availability_zones**: AZs for placing instances and subnets (may change based on your account's availability) (default: `[\"us-east-1a\", \"us-east-1b\", \"us-east-1d\"]`)\n* **internal_elb**: Make ELB internal to VPC vs externally accessible (default: `false`)\n\n\u003e Note: if you use an AMI other than RancherOS, the automatic launching of the Rancher server container will not work. You will need to update the user-data template according to the needs of your AMI.\n\n### Database\n* **db_name**: name of the RDS DB (default: `rancher`)\n* **db_user**: username used to connect to the RDS database (default: `rancher`)\n* **db_pass**: password used to connect to the RDS database (required)\n\n### SSL\n* **enable_https**: enable HTTPS termination on the loadbalancer (default: `false`)\n* **cert_body**: required if `enable_https` is set to `true`\n* **cert_private_key**: required if `enable_https` is set to `true`\n* **cert_chain**: required if `enable_https` is set to `true`\n\n### Rancher\n* **rancher_version**: Rancher version to deploy (default: `stable`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextrevision%2Fterraform-rancher-ha-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextrevision%2Fterraform-rancher-ha-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextrevision%2Fterraform-rancher-ha-example/lists"}