- Newest
- Most votes
- Most comments
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.
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
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
Relevant content
asked 3 years ago
