简体   繁体   中英

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:

在此处输入图片说明

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

在此处输入图片说明

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

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM