Skill 1.1.5

Determining appropriate deployment strategies (for example, AWS CodeDeploy)

Key Concepts

For EC2 and on-premises, in-place deployments update existing instances in batches defined by a deployment configuration (OneAtATime, HalfAtATime, AllAtOnce or custom minimum healthy hosts). Blue/green deployments provision new instances (or copy the Auto Scaling group), shift load balancer traffic, then terminate or keep the originals.

For Lambda and ECS, CodeDeploy always shifts traffic between versions: canary (e.g. Canary10Percent5Minutes), linear (e.g. Linear10PercentEvery1Minute) or all-at-once. Attaching CloudWatch alarms to the deployment group enables automatic rollback when error rates rise during the shift.