ExitBlue-Green Deployment: reversible traffic cutover1 / 9
Explanation

Separate deployment from exposure

How parallel environments enable validated traffic cutover and rollback, including readiness gates, connection draining, and compatibility of data and dependencies. · advanced

Blue-green deployment prepares a replacement environment without immediately exposing it to production traffic. This example uses separate Amazon ECS task sets behind an Application Load Balancer. Blue remains available while green is deployed and validated; the two application versions share a compatible database.

The traffic switch changes ALB listener routing between separate target groups. Route 53 changes DNS answers, and Global Accelerator routes at the network layer; neither manages ALB HTTP listener rules between target groups. The arrows show possible request paths and deployment commands, not simultaneous production delivery to both versions.

AWS CodeDeploy manages the ECS blue-green deployment lifecycle and traffic changes. CodePipeline coordinates pipeline stages, while CloudFormation provisions infrastructure; neither substitutes for this deployment controller. The shared store is RDS for MySQL: DynamoDB is not a MySQL relational database, and Redshift is an analytical warehouse rather than the transactional MySQL store used here.

Blue environment
Green environment
application requestscurrent or rollbackvalidated trafficcompatible SQLcompatible SQLreplacement task setlistener updates
UsersApplication clients
Elastic Load Balancing (ELB)Application Load Balancer — listeners and separate target groups
Amazon Elastic Container Service (Amazon ECS)Blue task set — current version, retained for rollback
Amazon Elastic Container Service (Amazon ECS)Green task set — replacement version, compatible writes
Amazon RDSShared RDS for MySQL — backward-compatible schema
AWS CodeDeployECS deployment controller — validation hooks and traffic control

1 / 6 Application clients use one stable application endpoint. They do not choose a release version.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.