Eventbridge rule not triggering the target

0

So I am doing a eventrule that should invoke a lambda at a perticualr time. Unfortunatelly, most of the time, the lambda is not being triggered although the event rule is being perforemd. Under failed invocation, I can see the event. BBut i donw know how to get the reason for the failed invocation. Some one pls shed some light.

asked 4 months ago287 views
1 Answer
0

Hello,


FailedInvocations metric indicates that there is an issue in invoking the target. It represents a permanent failure and might be the result of incorrect permissions or a misconfiguration of the target (lambda). Since the rule is not able to invoke the target, please check and confirm that the Lambda function has the appropriate permissions in its resource-based policy.

Additionally, you can also add Amazon SQS dead-letter queue as the target for the event rule. EventBridge uses Amazon Simple Queue Service (Amazon SQS) DLQs to store events that couldn't be delivered to a target. Attach an Amazon SQS DLQ to the target reporting FailedInvocations. Retrieve the events from the DLQ for analysis and to obtain more context on the issue.


Please refer to the following article that outlines detailed steps to troubleshoot the issue.

[+] Why wasn't my Lambda function triggered by my EventBridge rule?

Article: https://repost.aws/knowledge-center/eventbridge-lambda-not-triggered

Video: https://youtu.be/95F3Fam4h3E?si=m5OUpJbMktSa4g65

[+] My rule ran but my Lambda function wasn't invoked

https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-troubleshooting.html#eb-lam-function-not-invoked


For detailed investigation, we would need to check the resources and the permissions in your account. If you still have queries regarding this, I would request you to reach out to our support team by opening a support case with all the resource details, and we will investigate the issue further.

Let me know if you have any further queries. Thank you for your interest in re:Post community.

Best Regards, Ashish

References:

  1. How can I troubleshoot issues with Amazon EventBridge rules?

https://repost.aws/knowledge-center/eventbridge-rules-troubleshoot

  1. Troubleshooting Amazon EventBridge -

https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-troubleshooting.html

AWS
SUPPORT ENGINEER
answered 4 months ago
  • Hi, I have a DLQ which neither is invoked and I have the Lambda tested with neccesary permissions. It is invoked once in a while by the event rule. So the issue seems totally strange for me. NO DLQ messages when I poll the queue, no cloudwatch logs for the lambd, Nothing. Totally strange.

  • So strange that when I attached a DLQ, its firing properly.

  • @IndieGameDeveloperFromParallelWorld

    Is it working now as expected?

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