Connor
Connor

Reputation: 23

How to know why event bridge invoke failed?

I have a lambda function. It's deployed by serverless. So a rule always be created in my custom event bus automatically. After I send a test event to my bus. This rule can be triggered. But is always invoke fail. I try to find the reason but nothing can be saw beside invoke metrics.

Strangely, if I manually create a rule for the same. This manually created rule can always fire and successfully invoke the lambda function.

Upvotes: 0

Views: 1162

Answers (1)

Connor
Connor

Reputation: 23

Let me answer it myself. I solved it.

AWS eventbridge has no logging. However, by configuring the dead letter queue to reduce the number of retries and the holding time of the unprocessed state, events that cannot be successfully called by the target service can be entered into the dead letter queue as soon as possible.

Then, we can see the error code and error message in the attributes of the message.

Upvotes: 2

Related Questions