{"id":25436723,"url":"https://github.com/sanchistor/devops-templates","last_synced_at":"2026-04-06T08:01:34.577Z","repository":{"id":277867298,"uuid":"933765498","full_name":"Sanchistor/DevOps-templates","owner":"Sanchistor","description":"Templates for different DevOps solutions using Wagtail CMS as an example","archived":false,"fork":false,"pushed_at":"2025-02-16T16:51:47.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T18:55:56.563Z","etag":null,"topics":["aws","devops","ecs-fargate","rds-postgres","s3-backend","terraform"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Sanchistor.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-16T16:37:52.000Z","updated_at":"2025-02-16T16:55:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ae733de-4cd9-4679-b6e3-7d001b2a9740","html_url":"https://github.com/Sanchistor/DevOps-templates","commit_stats":null,"previous_names":["sanchistor/devops-templates"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sanchistor/DevOps-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanchistor%2FDevOps-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanchistor%2FDevOps-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanchistor%2FDevOps-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanchistor%2FDevOps-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sanchistor","download_url":"https://codeload.github.com/Sanchistor/DevOps-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanchistor%2FDevOps-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","devops","ecs-fargate","rds-postgres","s3-backend","terraform"],"created_at":"2025-02-17T08:22:11.965Z","updated_at":"2026-04-06T08:01:34.572Z","avatar_url":"https://github.com/Sanchistor.png","language":"Python","readme":"# ECS with Fargate - Infrastructure as Code\n\n## Overview\nThis repository contains Infrastructure as Code (IaC) to provision and manage AWS ECS (Elastic Container Service) using Fargate as the runtime environment. It also includes additional resources for application deployment, including an RDS database, an ECR repository, and a CI/CD pipeline.\n\n## Folder Structure\n```\n.\n├── provision-resources/\n│   ├── rds.tf          # Scripts to provision RDS database\n│   ├── ecr.tf          # Setup for Elastic Container Registry\n│   ├── pipeline.tf     # CI/CD pipeline configuration\n├── deployment              # ECS cluster and service definitions\n```\n\n## Features\n- **ECS with Fargate**: Fully managed container orchestration.\n- **RDS**: Managed database service for storing application data.\n- **ECR**: Secure container registry for storing Docker images.\n- **CI/CD Pipeline**: Automates application deployment.\n- **Scalability**: Easily scales based on workload.\n- **Security**: IAM roles and policies for secure access control.\n\n## Prerequisites\n- AWS CLI installed and configured\n- Terraform or AWS CloudFormation (if using Infrastructure as Code)\n- Docker (for building container images)\n\n## Deployment Steps\n1. **Clone the repository**\n   ```sh\n   git clone \u003crepository-url\u003e\n   cd \u003crepository-folder\u003e\n   ```\n\n2. **Provision resources**\n   - Navigate to the `provision-resources` folder and deploy required infrastructure (RDS, ECR, pipeline):\n   ```sh\n   cd terraform/provision-resources\n   terraform init\n   terraform plan\n   terraform apply \n   ```\n\n3. **Deploy ECS with Fargate**\n   - Configure the ECS cluster and services in the `deployment/` directory.\n   ```sh\n   cd terraform/deployment\n   terraform init\n   terraform plan\n   terraform apply\n   ```\n\n4. **Push container image to ECR**\n   ```sh\n   aws ecr get-login-password --region \u003cregion\u003e | docker login --username AWS --password-stdin \u003cecr-repo-url\u003e\n   docker build -t \u003cimage-name\u003e .\n   docker tag \u003cimage-name\u003e:latest \u003cecr-repo-url\u003e:latest\n   docker push \u003cecr-repo-url\u003e:latest\n   ```\n\n5. **Trigger the CI/CD pipeline**\n   - The pipeline will deploy the application automatically.\n\n## Monitoring \u0026 Logs\n- **CloudWatch Logs**: View logs for ECS tasks and services.\n- **AWS X-Ray**: Trace application performance (if enabled).\n- **ECS Console**: Monitor running tasks and services.\n\n## Future Enhancements\n- Add autoscaling for ECS tasks\n- Implement Blue/Green deployment strategy\n- Enhance security with AWS Secrets Manager\n---\nFeel free to contribute and enhance this repository!\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanchistor%2Fdevops-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanchistor%2Fdevops-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanchistor%2Fdevops-templates/lists"}