{"id":19586316,"url":"https://github.com/tbobm/tf-ecr-ecs-gh-deploy","last_synced_at":"2025-04-27T12:31:20.168Z","repository":{"id":47847922,"uuid":"352055983","full_name":"tbobm/tf-ecr-ecs-gh-deploy","owner":"tbobm","description":"Example repository to build OCI, publish to ECR and deploy to ECS fargate, setup using terraform.","archived":false,"fork":false,"pushed_at":"2024-01-23T08:40:14.000Z","size":43,"stargazers_count":60,"open_issues_count":0,"forks_count":49,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-01-23T10:12:10.151Z","etag":null,"topics":["aws","aws-infrastructure","ci-cd","containers","docker","ecr","ecs","ecs-service","fargate","github-actions","serverless","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://particule.io/en/blog/cicd-ecr-ecs/","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/tbobm.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":"2021-03-27T11:30:34.000Z","updated_at":"2024-01-17T12:09:12.000Z","dependencies_parsed_at":"2022-08-30T16:13:18.206Z","dependency_job_id":null,"html_url":"https://github.com/tbobm/tf-ecr-ecs-gh-deploy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Ftf-ecr-ecs-gh-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Ftf-ecr-ecs-gh-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Ftf-ecr-ecs-gh-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Ftf-ecr-ecs-gh-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbobm","download_url":"https://codeload.github.com/tbobm/tf-ecr-ecs-gh-deploy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224069489,"owners_count":17250456,"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":["aws","aws-infrastructure","ci-cd","containers","docker","ecr","ecs","ecs-service","fargate","github-actions","serverless","terraform","terraform-module"],"created_at":"2024-11-11T07:59:23.489Z","updated_at":"2024-11-11T07:59:23.925Z","avatar_url":"https://github.com/tbobm.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated ECS deployments\n\n[![workflow](https://github.com/tbobm/tf-ecr-ecs-gh-deploy/actions/workflows/workflow.yml/badge.svg)](https://github.com/tbobm/tf-ecr-ecs-gh-deploy/actions/workflows/workflow.yml)\n\nCreate the AWS infrastructure (ECS, ECR, ALB, ...) to deploy a container and\nautomatically update it using Github Action.\n\nExample run is available [here][ci-success].\n\n_Hey, considering some people forked this project I made a Terraform Module\nbased on the resources I used in this repository. It is available at\n[github.com/tbobm/terraform-aws-ecs][gh-tf-module] and it is already available\nin the Terraform Registry at [tbobm/ecs][tf-registry-ecs]._\n\n[tf-registry-ecs]: https://registry.terraform.io/modules/tbobm/ecs/aws/latest\n[gh-tf-module]: https://github.com/tbobm/terraform-aws-ecs\n\n## Core components\n\n### AWS\n\nThe AWS infrastructure is setup using terraform in the [`./terraform`](./terraform).\n\nThe following components are deployed:\n\n- Application Load Balancer ([`./lb.tf`](./terraform/lb.tf))\n- ECS Cluster / ECS Service ([`./ecs.tf`](./terraform/ecs.tf))\n- Elastic Container Registry ([`./ecr.tf`](./terraform/ecr.tf))\n- IAM permissions ([`./iam.tf`](./terraform/iam.tf))\n- VPC configuration ([`./vpc.tf`](./terraform/vpc.tf))\n\n### CI/CD\n\nThe repository leverages the [AWS Github Actions](https://github.com/aws-actions/)\nmaintained by AWS.\n\nThe main goal is to provide an example configuration of the following workflow:\n\n- Run the integration tests\n- Build the Docker image\n- Publish it to a private ECR\n- Update the corresponding ECS Service (by editing the task image)\n\n[ci-success]: https://github.com/tbobm/tf-ecr-ecs-gh-deploy/actions/runs/704500533\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbobm%2Ftf-ecr-ecs-gh-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbobm%2Ftf-ecr-ecs-gh-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbobm%2Ftf-ecr-ecs-gh-deploy/lists"}