Skill 3.4.5

Deploy an application version by using deployment strategies

Key Concepts

All-at-once or in-place deployments are fast but risk downtime and slow rollbacks. Rolling deployments update a batch at a time. Blue/green deployments run the new version alongside the old and switch traffic when it is ready, allowing instant rollback. Canary deployments send a small percentage of traffic first, and linear deployments shift traffic in equal steps.

CodeDeploy implements these for EC2 (in-place or blue/green), Lambda (canary, linear, all-at-once through alias weights) and ECS (blue/green with canary or linear traffic shifting). Elastic Beanstalk offers all-at-once, rolling, rolling with additional batch, immutable and traffic splitting, and API Gateway supports canary releases on stages.