Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot see events in AWS CodeDeploy

My CodeDeploy deployment is failing. Usually I'm able to see the event list on each instances, and see which ones failed/passed. This no longer works, and the event list is empty. What could be causing this?

like image 331
EugeneMi Avatar asked Jul 11 '26 17:07

EugeneMi


2 Answers

As Jonathan Turpie mentions, you should probably troubleshoot if the instance is taking care of your deployment.

You could first try to troubleshoot via AWS CLI, aws deploy get-deployment --deployment-id d-USUAELQEX. It might return error codes that will help you to tweak your setting and succeed with your deployment. See http://docs.aws.amazon.com/cli/latest/reference/deploy/get-deployment.html

If your EC2 instance actually handles the deployment. Edit the /etc/codedeploy-agent/conf/codedeployagent.yml and set :verbose: to true on your EC2 instance.

Try to deploy again and open codedeploy-agent.log at /var/log/aws/codedeploy-agent and see if you are able to see anything there. Read more here: http://docs.aws.amazon.com/codedeploy/latest/userguide/host-cleanup.html

like image 80
socialli Avatar answered Jul 15 '26 07:07

socialli


You may not be able to see events if the deployment didn't get far enough. For example, there was a problem getting the list of instances due to IAM configuration or your instance isn't responding to commands.

like image 33
Jonathan Turpie Avatar answered Jul 15 '26 06:07

Jonathan Turpie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!