What deployment strategies do you use on AWS and when?
BeginnerProductionObservability, Deployments and Governance
Answer
flowchart LR
R["Rolling: replace in batches, cheapest"] --> B["Blue/green: full new stack, instant switch and rollback"]
B --> C["Canary: small % first, watch alarms, then all"]
C --> L["Linear: shift in equal steps over time"]
- EC2/ASG: instance refresh (rolling) with checkpoints, or blue/green via two target groups and ALB weighted forwarding.
- ECS: rolling with deployment circuit breaker and alarm-based rollback, or blue/green with traffic shifting.
- Lambda: aliases with weighted routing via CodeDeploy (
Canary10Percent5Minutes,Linear10PercentEvery1Minute). - EKS: Argo Rollouts or Flagger with ALB weights.
Pick canary for high-traffic services where metrics detect problems quickly; blue/green when you need instant rollback.
More on Observability, Deployments and Governance
What should a production CloudWatch alarm strategy look like?IntermediateHow do you alert on an error-rate percentage instead of a raw count?IntermediateHow do you implement distributed tracing on AWS today?IntermediateHow do you define SLOs with AWS-native tools?AdvancedHow do you monitor from the user's perspective?BeginnerHow do you centralize observability across many accounts?Intermediate