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 Answers
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
EXPERT
answered a year ago
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.

answered a year ago
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
EXPERT
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.

Guidelines for Answering Questions