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.

已提問 5 個月前檢視次數 319 次
1 個回答
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
支援工程師
已回答 5 個月前
  • 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?

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

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

回答問題指南