Skip to main content

Deployment Rollback

Symptoms

  • Health checks failing after deployment
  • Errors in application logs
  • User reports of issues

Steps

  1. Identify the previous working image tag

    aws ecr describe-images --repository-name statux-api \
    --query 'sort_by(imageDetails,&imagePushedAt)[-5:].imageTags'
  2. Update ASG launch template to previous tag

    • Or manually start instance refresh with previous image
  3. Monitor health checks

    watch -n 5 'aws elbv2 describe-target-health --target-group-arn <arn>'
  4. Investigate root cause after service is restored