Skill 5.3.1

Analyzing failed deployments (for example, AWS CodePipeline, AWS CodeBuild, AWS CodeDeploy, AWS CloudFormation, CloudWatch synthetic monitoring)

Key Concepts

In CodePipeline, the failed action links to its provider's details. CodeBuild logs show the failing phase and command (common causes: non-zero exit codes, service role permissions, VPC networking, Docker without privileged mode). CodeDeploy lists the failed lifecycle event per instance and its script output (common causes: agent not running, script errors or timeouts, health check failures, IAM permissions to S3).

CloudFormation stack events show the first resource that failed and its reason; stacks stuck in UPDATE_ROLLBACK_FAILED need continue-update-rollback, possibly skipping resources. CloudWatch Synthetics canaries detect broken endpoints after a release and can trigger alarms that roll the deployment back.