Interview Prep/AWS/Observability, Deployments and Governance

How do you get automatic rollback on bad deployments?

AdvancedProductionObservability, Deployments and Governance
Answer

Tie deployments to CloudWatch alarms. ECS: enable the deployment circuit breaker with rollback: true plus the alarms configuration on the service so the deployment rolls back if a 5xx or latency alarm fires during bake time. CodeDeploy: deployment group alarms with automatic rollback on alarm. ASG instance refresh: alarm-based rollback with AutoRollback. Lambda: CodeDeploy hooks plus alarms. The quality of the rollback depends on alarms that react within the bake window.

aws All AWS questions

More on Observability, Deployments and Governance