Deployment Rollback
Symptoms
- Health checks failing after deployment
- Errors in application logs
- User reports of issues
Steps
-
Identify the previous working image tag
aws ecr describe-images --repository-name statux-api \
--query 'sort_by(imageDetails,&imagePushedAt)[-5:].imageTags' -
Update ASG launch template to previous tag
- Or manually start instance refresh with previous image
-
Monitor health checks
watch -n 5 'aws elbv2 describe-target-health --target-group-arn <arn>' -
Investigate root cause after service is restored