- Newest
- Most votes
- Most comments
I believe below some reasons you cannot capture the logs:
- Circuit Breaker triggers early: If tasks fail to start (e.g. bad image, misconfigured environment), ECS may never reach the point where containers emit logs.
- No task execution: If the container fails before launching, there's no log stream created.
- CloudFormation rollback: The rollback process suppresses some error details unless explicitly captured via EventBridge or ECS service events.
Try locate at the following by checking ECS Service Events:
Go to the ECS console:
- Navigate to your cluster > service.
- Look under the Events tab.
- Look for messages like:
- “Deployment failed: tasks failed to start.”
- “Rolling back to previous deployment.”
Hey,
Hope you're keeping well.
When the ECS deployment circuit breaker triggers, it often means tasks never reached a running state, so no CloudWatch log streams were created. First, check the ECS service events in the console under your cluster → service → Events for container start failures or image pull errors. If you expect logs, make sure the task definition has awslogs configured in logConfiguration and that the task execution role has logs:CreateLogStream and logs:PutLogEvents permissions. You can also inspect failed task details under the Tasks tab by selecting a stopped task and reviewing the StoppedReason and container exit codes.
Thanks and regards,
Taz
answered a year ago
Relevant content
- AWS OFFICIALUpdated 7 months ago
