A company uses AWS CodePipeline with a multi-branch strategy. A new feature branch triggers a pipeline that runs unit tests and deploys to a test environment. The deployment step uses AWS CodeDeploy with a deployment group configured for in-place deployment to Amazon EC2 instances. The deployment fails intermittently with the error 'The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.' The instances are healthy and pass health checks. What is the most likely cause?
Trap 1: The pipeline has a failed execution that is blocking subsequent…
CodePipeline allows concurrent executions unless specifically configured to block.
Trap 2: The CodeDeploy agent on the instances is not running, causing the…
If the agent were not running, instances would fail health checks and show specific errors.
Trap 3: The pipeline is configured with a high frequency of changes,…
CodePipeline throttles are rare and would produce a different error.
- A
The pipeline has a failed execution that is blocking subsequent executions.
Why wrong: CodePipeline allows concurrent executions unless specifically configured to block.
- B
The CodeDeploy agent on the instances is not running, causing the deployment to fail.
Why wrong: If the agent were not running, instances would fail health checks and show specific errors.
- C
The pipeline is configured with a high frequency of changes, causing throttling from CodePipeline.
Why wrong: CodePipeline throttles are rare and would produce a different error.
- D
A previous deployment is still in progress or frozen in the CodeDeploy deployment group.
CodeDeploy limits concurrent deployments per deployment group; a frozen deployment prevents new ones.