0

I am currently trying to setup a CI/CD pipeline. I created a Code Build and it's in s3. I am now using CodeDeploy to deploy it to an EC2 instances. When I try to deploy I get this error immediately

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.

I found suggestions here before install: CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is

I've made sure CodeDeploy has CodeDeployRole and AmazonEC2RoleforAWSCodeDeploy

enter image description here

I've checked that CodeDeploy is on my EC2 instance.

Unfortunately I still can't deploy. Any tips or suggestions would help

Master
  • 2,038
  • 2
  • 27
  • 77

1 Answers1

0

I had the same problem, when I changed the ec2 role, I had to restart codedeploy agent

d1sh4
  • 1,710
  • 5
  • 21