새소식

⇥ DevOps Tech 🙋🏻‍♀️/✏️ 한 줄 에러

[AWS] 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

  • -
반응형

코드 디플로이에서 배포에 실패할 때 발생하는 에러로 흔히 볼 수 있다.

번역해보면 CodeDeploy Agent 가 정상적으로 이벤트를 수신할 수 없어서 배포 할 수 없다는 내용이다.

 

codedeploy-agent 로그에 가서 확인해보자. (/var/log/aws/codedeploy-agent/codedeploy-agent.log)

InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Missing credentials - please check if this instance was started with an IAM instance profile

 

IAM Role 이 지정되지 않은 상태로 인스턴스가 기동 및 Agent 가 설치되서 이후 CodeDeploy 는 자격증명이 없어서 발생하게 된 에러라고 하는데, 어쨋든 권한이 없어서 그런 상황이다. 
EC2 에 알맞은 권한을 부여했다면 인스턴스를 restart 해주자.

-

Image by vectorjuice on Freepik

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.