Code Deploy Failure

0

I'm trying to deploy an application using Pipeline, but the deployment is failing every time. I have granted the permissions, and the agent is also running in the EC2 instance, but I'm getting this error each time "CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server."

Manju
질문됨 10달 전266회 조회
2개 답변
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

profile picture
전문가
답변함 10달 전
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:

  1. Make sure Instance Profile (role) attached to my EC2.
  2. EC2 instance should have AmazonEC2RoleforAWSCodeDeploy.
  3. CodeDeploy should have CodeDeployRole.
  4. 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

How to view deployment logs

Hope you find this information helpful.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
전문가
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠