2

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?

cellover
  • 419
  • 5
  • 19

2 Answers2

8

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!

cellover
  • 419
  • 5
  • 19
0

The easiest way to see deployment logs is to set up your instances to upload them to CloudWatch logs. See instructions here.

Otherwise, you can view the log data by ssh-ing to the hosts. See here for more details.

EmptyArsenal
  • 7,314
  • 4
  • 33
  • 56