ECS Fargate Failed Invocation with EventBridge

0

I have created an ECS Fargate Task, which I can manually run. It updates a Dynomodb and I get logs.

Now I want this to run on a schedule. I have setup a scheduled ECS task through EventBridge and through the UI in the ECS cluster. However, this does not run.

I have used the cron scheduler and I have also tried the 'Run at fixed interval' option, which also doesn't work. As far as possible I am using the same settings when I run the task manually and in EventBridge. I've tried the default capacity provider (and made sure that's set to Fargate in the cluster). I've tried using manually defined permissions and I've tried letting EventBridge make it's own permissions.

I see a 'Failed Invocation' in CloudWatch metrics, for every invocation of the task. But I am unable to find any other logs to debug. The task seems to not start: no logs are generated and the failed invocation happens at the same time as the invocation.

Are there any logs I could share that would help diagnose?

Does anyone have any suggestions for what might be causing this failure?

1개 답변
1
수락된 답변

Have a look in cloudtrail for "Error" events with around the time period - The event will contain a more detailed cause.

You may want to wrap this execution in a step function then you can build in more detailed logic/error response etc

AWS
전문가
Peter_G
답변함 2년 전
  • Thanks - cloudtrail helped a lot!

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

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

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

관련 콘텐츠