{"id":29258222,"url":"https://github.com/janudabethmin/ecs-with-nginx-proxy","last_synced_at":"2025-07-04T06:02:12.188Z","repository":{"id":300991173,"uuid":"1006968305","full_name":"janudabethmin/ecs-with-nginx-proxy","owner":"janudabethmin","description":" An open source template for deploying containerized workloads on AWS ECS with NGINX as the reverse proxy using terraform","archived":false,"fork":false,"pushed_at":"2025-07-03T04:15:27.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T05:25:28.542Z","etag":null,"topics":["ecs","nginx","terra"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janudabethmin.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T09:08:27.000Z","updated_at":"2025-07-03T04:15:31.000Z","dependencies_parsed_at":"2025-06-24T16:32:26.629Z","dependency_job_id":"24042ac7-f8f0-44a2-991f-462d082d72b8","html_url":"https://github.com/janudabethmin/ecs-with-nginx-proxy","commit_stats":null,"previous_names":["janudabethmin/ecs-with-nginx-proxy"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/janudabethmin/ecs-with-nginx-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janudabethmin%2Fecs-with-nginx-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janudabethmin%2Fecs-with-nginx-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janudabethmin%2Fecs-with-nginx-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janudabethmin%2Fecs-with-nginx-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janudabethmin","download_url":"https://codeload.github.com/janudabethmin/ecs-with-nginx-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janudabethmin%2Fecs-with-nginx-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263457104,"owners_count":23469279,"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":["ecs","nginx","terra"],"created_at":"2025-07-04T06:00:40.524Z","updated_at":"2025-07-04T06:02:12.140Z","avatar_url":"https://github.com/janudabethmin.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Template for ECS with NGINX\n\n**This is the only open source template for deploying containerized workloads on AWS ECS with NGINX as the reverse proxy, using Terraform. Feel free to use, modify, and share!**\n---\n ![Screenshot from 2025-06-30 15-14-38](https://github.com/user-attachments/assets/41565cf2-81aa-4a73-8281-6e85ce996105)\n\n\nThis repository provides an example of using Terraform to deploy an NGINX service on AWS ECS (Elastic Container Service). It includes reusable modules and a sample configuration for quick setup and experimentation.\n\n## Features\n- **Modular Design**: Easily reusable ECS module for running NGINX or other containerized services.\n- **Sample Usage**: Example configuration and variables for rapid deployment.\n- **Custom NGINX Config**: Override default NGINX settings with your own `nginx.conf`.\n\n## Getting Started\n1. **Clone the repository**\n   ```sh\n   git clone \u003cthis-repo-url\u003e\n   cd ecs-tf/example\n   ```\n2. **Initialize Terraform**\n   ```sh\n   terraform init\n   ```\n3. **Review and update variables**\n   - Edit `terraform.tfvars` to set your AWS region, VPC, subnets, and other required parameters.\n4. **Apply the configuration**\n   ```sh\n   terraform apply\n   ```\n\n## Requirements\n- [Terraform](https://www.terraform.io/downloads.html) \u003e= 1.0.0\n- AWS account credentials configured (via environment variables or AWS CLI)\n\n## Customization\n- Modify `nginx.conf` in the `example/` directory to change NGINX behavior.\n- The module in `modules/ecs-nginx/` can be adapted for other container images or services.\n\n## Example `terraform.tfvars`\nBelow is a sample `terraform.tfvars` file with demo data. Replace the values with your actual AWS resource IDs and preferences:\n\n```hcl\nvpc_id             = \"vpc-12345678\"\npublic_subnet_ids  = [\"subnet-11111111\", \"subnet-22222222\"] \nprivate_subnet_ids = [\"subnet-33333333\", \"subnet-44444444\"] \naws_region         = \"us-east-1\"\nname        = \"demo-ecs-nginx\"\ntags = {\n  \"Name\"        = \"demo-ecs-nginx\"\n  \"Environment\" = \"dev\"\n  \"Project\"     = \"ecs-demo\"\n}\n```\n\n## Cleaning Up\nTo destroy the created resources:\n```sh\nterraform destroy\n```\n\n## License\nMIT License. See [LICENSE](LICENSE) for details.\n\n---\n_Last updated: 2025-06-24_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanudabethmin%2Fecs-with-nginx-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanudabethmin%2Fecs-with-nginx-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanudabethmin%2Fecs-with-nginx-proxy/lists"}