Roll out a new ECS service version with canary and automatic rollback.
IntermediateScenarioECS, EKS, Lambda and ECR
Answer
Situation read → Use CodeDeploy blue/green or ECS native blue/green.
What I'd do →
- Two target groups on the ALB
- Deployment config
CodeDeployDefault.ECSCanary10Percent5Minutes - CloudWatch alarms on 5xx and latency attached to the deployment group
- Automatic rollback on alarm
- Test listener for pre-traffic validation hooks
Why → Alarms trigger automatic reversal without a human.
Interview tip → Mention ECS native blue/green as the newer path.
More on ECS, EKS, Lambda and ECR
ECS on Fargate or on EC2: how do you choose?BeginnerDeploy a containerized API on ECS behind an ALB. What are the building blocks?BeginnerAn ECS service deployment is stuck, tasks start and stop repeatedly. How do you debug?IntermediateEKS pods need access to S3 without node-level permissions. How?IntermediateUpgrade an EKS cluster from 1.31 to 1.33 safely.IntermediateDesign node scaling for EKS with mixed Spot and On-Demand and fast scale-up.Advanced