Skip to content

Could not find error logs on Cloudwatch

0

I am getting roll back failed in cloud formation and the status reason is : Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'." (RequestToken: 3633a610-7025-4295-521d-b0acf9bc5ff4, HandlerErrorCode: GeneralServiceException)

I am not getting any error logs for the reason it is failing.The region is alpha (us-west-2)

2 Answers
5
Accepted Answer

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.”
EXPERT

answered a year ago

0

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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.