How ramyadav08/ecs-blue-green-deployement-with-terraform works
Project type and purpose
• This is an infrastructure-as-code project for provisioning and managing a Blue/Green deployment pipeline of a containerized Python web app on AWS ECS, using Terraform modules.
• The small “app” folder contains a Flask application (app.py) and Dockerfile; Terraform code in the root and modules sets up networking, IAM, ECR, ECS, CodeDeploy, CloudWatch Logs, Auto Scaling, and an Application Load Balancer (ALB) to perform blue/green rollouts.
File structure
• Top-level:
• main.tf, variables.tf, provider.tf, terraform.tfvars: root Terraform orchestrator
• modules/: reusable Terraform modules for each AWS component (VPC, SG, IAM, ECR, ECS, ASG, ALB, CodeDeploy, CloudWatch Logs)
• app/: containerized Flask app and its requirements
• .github/workflows/: two CI workflows—one to deploy infra (“infra.yaml”), one to build/apply code updates (“app-deploy.yaml”)
• Patterns: modular design for each AWS resource; clear separation of application code (in app/) from infrastructure code.
README
• Title “Ecs-Blue-green-deployement-with-terraform” confirms blue/green deployment focus.