{"id":13827710,"url":"https://github.com/oddnetworks/terraform-amazon-ecs","last_synced_at":"2025-07-09T04:33:21.700Z","repository":{"id":100611840,"uuid":"51087522","full_name":"oddnetworks/terraform-amazon-ecs","owner":"oddnetworks","description":"Terraform files for deploying and running Amazon ECS (+ Private Docker Registry)","archived":false,"fork":true,"pushed_at":"2016-02-04T17:30:00.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-05T09:16:39.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Capgemini/terraform-amazon-ecs","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oddnetworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security-groups.tf","support":null}},"created_at":"2016-02-04T16:08:05.000Z","updated_at":"2016-03-28T17:56:06.000Z","dependencies_parsed_at":"2023-04-27T04:16:36.555Z","dependency_job_id":null,"html_url":"https://github.com/oddnetworks/terraform-amazon-ecs","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/oddnetworks%2Fterraform-amazon-ecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddnetworks%2Fterraform-amazon-ecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddnetworks%2Fterraform-amazon-ecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddnetworks%2Fterraform-amazon-ecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddnetworks","download_url":"https://codeload.github.com/oddnetworks/terraform-amazon-ecs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225486410,"owners_count":17481891,"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-08-04T09:02:05.809Z","updated_at":"2024-11-20T07:30:59.926Z","avatar_url":"https://github.com/oddnetworks.png","language":"HCL","funding_links":[],"categories":["HCL"],"sub_categories":[],"readme":"# Terraform AWS ECS (+ Docker Registry)\n\n**Note** - This is still a work in progress, so expect issues and bugs .. Feel free to jump in and start fixing things.\n\nThis repo contains a [Terraform](https://www.terraform.io) plan to run up an [Amazon ECS](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html) cluster with a private Docker registry.\n\nInspired from [http://blog.codeship.com/running-a-private-docker-registry-on-ec2/](http://blog.codeship.com/running-a-private-docker-registry-on-ec2/)\n\nIncludes -\n\n  * Private S3 bucket for container registry data\n  * Docker container running allingeek/registry:2-s3 (by default)\n  * ECS cluster, launch configuration and autoscaling group\n\n### Prerequisites\n\n* Terraform installed, recommended (\u003e= 0.6.3). Head on over to [https://www.terraform.io/downloads.html](https://www.terraform.io/downloads.html) to grab the latest version.\n* An AWS account [http://aws.amazon.com/](http://aws.amazon.com/)\n\n### Usage\n\n1. Clone the repo\n2. Set some required variables -\n\n```\nexport TF_VAR_key_name=name of ssh key\nexport TF_VAR_key_file=the ssh key file to use\nexport TF_VAR_aws_access_key=The AWS access key ID\nexport TF_VAR_aws_secret_key=The AWS secret key\n```\nRun the plan -\n\n```\nterraform apply\n```\n\nAlternatively the variables can be passed on the command line e.g. -\n\n```\nterraform apply -var 'key_name=name' -var 'key_file=path_to_file' -var 'aws_access_key=access_key' -var 'aws_secret_key=secret_key'\n```\n\nFor a full list of overridable variables see ```variables.tf```\n\n### Known issues\n\nIf you are using terraform v0.6.3 and encounter this error -\n\n```\n* aws_ecs_service.s3-registry-elb: InvalidParameterException: Unable to assume role and validate the listeners configured on your load balancer.  Please verify the role being passed has the proper permissions.\n  status code: 400, request id: []\n```\n\nThis is probably down to this bug / issue with waits/timeouts - [https://github.com/hashicorp/terraform/issues/2869](https://github.com/hashicorp/terraform/issues/2869).\n\nYou can either compile terraform from the latest master branch, or re-run the terraform\napply again which should succeed the second time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddnetworks%2Fterraform-amazon-ecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddnetworks%2Fterraform-amazon-ecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddnetworks%2Fterraform-amazon-ecs/lists"}