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.

Step 1
Ensure that the CodeDeploy agent is downloaded for the correct region. Sometimes, it might be downloaded for a different region.

For installation instructions, refer to:
CodeDeploy Agent Installation for Ubuntu

Step 2
Has the issue been resolved? If not, try the following workaround:

sudo iptables -A OUTPUT -d 169.254.169.254 -j REJECT

aws deploy install –config-file codedeploy.onpremises.yml –region us-west-2

sudo iptables -D OUTPUT -d 169.254.169.254 -j REJECT

Leave a Comment