Search code examples
amazon-web-servicesloggingstdoutaws-code-deploy

How to get CodeDeploy event logs even when they are successful?


I work on a deployment process using AWS CodeDeploy. When there is a failure in one of the scripts specified in appspec.yml, you get this nice little log output giving back STDOUT:

enter image description here

However, when all events are successful, it seems there is no way to see STDOUT:

enter image description here

Is there a way to see all STDOUT even when deployment events succeed?


Solution

  • Someone managed to get the answer to this and here is the solution:

    On each instance:

    cat /opt/codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
    

    Sorry for the bother, hope it helps somebody one day!