Skip to content

AWS Event Bridge triggered successfully, but target ECS Fargate task did not run, sometime only, not every time

0

Enter image description here I can see eventbridge monitoring it has invoked successfully(did not went in dead letter), but the ECS cluster cannot see it got trigger, only today, it is triggering everyday

How to see the log of ECS task why it did not trigger, and what could be possible reason? and how to prevent?

asked a year ago284 views

3 Answers
0

Hello.

Do you mean running RunTask from EventBridge?
If that is the case, an event will likely be recorded in CloudTrail, so search for the RunTask event in the CloudTrail event history and check the details.
If EventBridge is running, I think it will keep a history of API.
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/tutorial-event-history.html

Since this only happens occasionally, there should be no problem with IAM permissions.
One possible problem may be in the task settings.
For example, you may have selected multiple subnets in which to launch the task, and the selected subnets may include a completely private subnet that does not include a route to a NAT Gateway or VPC Endpoint, causing the task to fail to launch.

EXPERT

answered a year ago

0

hi,

as you mentioned "but the ECS cluster cannot see it got trigger only today, it is triggering everyday" beside the above, can you check the rule's configuration

aws events describe-rule

Check the CloudWatch Logs group /ecs/your-event-triggered-task in the region. Look for logs from today to identify errors or reasons the task didn’t start.

answered a year ago

0

hi again,

to see the log in ECS cluster in Tasks tab- look under family

your-event-triggered-task

if no tasks are listed for today, the issue is likely with the EventBridge trigger or cluster capacity, not the task itself.

hope it helps! Best

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.