An e-commerce company is migrating its order processing service to a containerized application running on Amazon ECS with AWS Fargate, fronted by an Application Load Balancer (ALB). The service is highly sensitive to downtime, and any deployment must ensure zero downtime. Additionally, the development team wants to test new releases under production load by routing of the traffic to the new version for a -minute observation period. If the new version triggers any CloudWatch alarms for errors or high latency during this period, the deployment must automatically roll back. Which deployment strategy should the Solutions Architect design to satisfy these requirements?
- Configure the Amazon ECS service to use the AWS CodeDeploy blue/green deployment controller. Create a CodeDeploy deployment group utilizing the CodeDeployDefault.ECSCanary10Percent15Minutes configuration, and specify the CloudWatch alarms for errors and latency as rollback triggers in the deployment group.Cevap
- BConfigure the Amazon ECS service to use the ECS rolling update deployment type. Enable the ECS deployment circuit breaker with rollback enabled, and set the minimum healthy percent to and maximum percent to .
- CDeploy a second Amazon ECS service with the new application version. Configure the Application Load Balancer with two path-based target groups. Use Amazon Route 53 weighted routing policies to route of the traffic to the new ECS service, and configure an AWS Lambda function to monitor CloudWatch alarms and update Route 53 weights to if alarms are triggered.
- DConfigure the Amazon ECS service to use the ECS rolling update deployment type. Use an AWS Systems Manager Automation runbook to gradually register new Fargate tasks to the target group in increments every minutes, and configure the target group to deregister tasks if the metric alarm triggers.
Cevap
Configure the Amazon ECS service to use the AWS CodeDeploy blue/green deployment controller with the CodeDeployDefault.ECSCanary10Percent15Minutes configuration, and associate CloudWatch alarms with the deployment group for automated rollback.
The correct option is correct because AWS CodeDeploy blue/green deployment is the standard AWS solution for performing canary and linear deployments on Amazon ECS. It natively shifts a specified percentage of traffic (such as ) to the new task set for a defined duration (such as minutes) using the Application Load Balancer's target groups. It also integrates directly with Amazon CloudWatch alarms to automatically trigger rollbacks if application-level errors or latency exceed thresholds during the deployment window.
Adım Adım Çözüm
Anahtar Kavram
AWS CodeDeploy Blue/Green Deployment with Canary traffic shifting on ECS