Location of ECS CodeDeploy logs?

0

Where is the location of ECS CodeDeploy logs? I know where to find them for EC2 deployments, but not for ECS.

질문됨 2년 전1377회 조회
2개 답변
0

CodeDeploy logs is not supported for Amazon ECS deployments nor AWS Lambda.

Specifically, there is no application related deployment commands executed by CodeDeploy as your application is packaged as a container, and the configurations are drafted in ECS task definitions so CodeDeploy logs won't have much value compared to traditional deployments to EC2.

that said, you can view deployment related events in services such as ECS, or in CloudTrail.

Is there anything specific you are looking for in the log?

Jason_S
답변함 2년 전
  • I would like to see how long each step takes in the "install" portion of ECS during CodeDeploy. I would like to see how long it takes to create the replacement task. How long it takes for the new application to be installed in the replacement task?

  • Did you check the "Deployment lifecycle events" section in your CodeDeploy deployment details page? Also you do have an option to add Lambda function hooks in your AppSpec

0

Per the documentation:

Logs are not supported for AWS Lambda or Amazon ECS deployments. They can be created for EC2/On-Premises deployments only.

In lieu of logs, I recommend creating a subscription via EventBridge to CodeDeploy-related events as described here. You can configure CloudWatch Logs as an event target, and this will create an indirect log of your deployments.

AWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인