aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

Windows Deployment Group logs should be in the log folder #372

Open rogermyung opened 1 year ago

rogermyung commented 1 year ago

According to the documentation at https://docs.aws.amazon.com/codedeploy/latest/userguide/deployments-view-logs.html#deployments-view-logs-instance-windows We need to look at logs the locations C:\ProgramData\Amazon\CodeDeploy\log\codedeploy-agent-log.txt C:\ProgramData\Amazon\CodeDeploy\deployment-group-ID\deployment-ID\logs\scripts.log

The C:\ProgramData\Amazon\CodeDeploy\log\ can be redirected with :log_dir: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-agent-configuration.html but the deployment-group-ID is uniquely generated, which makes it hard to get access to.

We would like the deployment logs to be able to redirected to under C:\ProgramData\Amazon\CodeDeploy\log\