EventBridge infinite loop calling API Gateway

0

I have an EventBridge rule with cron to run once day. When I enable the rule, it keeps firing the event and executing the API Gateway. I tried to disabled the rule but checking the logs for API Gateway, I keep seeing executions.

Is this expected behavior for a rule?

3 個答案
0

It might be helpful to show the cron expression that is being used.

Is the API Gateway invocation succeeding? If it fails you might find that EventBridge will retry the operation.

profile pictureAWS
專家
已回答 1 年前
0

This is the cron expression: cron(10 * * * ? *).

The API Gateway was failing and it was retrying but I also saw the same behavior on success from API Gateway.

已回答 1 年前
0

That expression means that your API is being triggered at 10 minutes past the hour, every hour of the day.

Looking at the documentation you probably want something like `(0 10 * * ? *) which runs at 10AM UTC every day.

profile pictureAWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南