2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
If you check the log of the CodeDeploy agent, you will see an error output.
Would it be possible for you to share that error with us?
https://docs.aws.amazon.com/codedeploy/latest/userguide/deployments-view-logs.html
0
The error you are seeing is quite common and usually IAM permissions use to be the cause but there can be other reasons as well.
Can you make sure of following:
- Make sure Instance Profile (role) attached to my EC2.
- EC2 instance should have AmazonEC2RoleforAWSCodeDeploy.
- CodeDeploy should have CodeDeployRole.
- If you are using the deployment group, then does that deployment group has this EC2 machine?
Did you check the agent log, if you see anything there that could give more details.
Additional reference:
Deployment troubleshooting guide
Hope you find this information helpful.
Comment here if you have additional questions, happy to help.
Abhishek
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago