Cloudwatch Rule Failed Invocation

0

Hi All,
I am new to the AWS services. I am trying to invoke a lambda through a cloudwatch event rule. The rule gets triggered in the specified time; but it fails to invoke the function. I understand that there are several criteria that could cause this. But where can I find which particular reason that caused the invocation failure. Is there a log somewhere or any other means? All I can see now is that the rule failed to invoke the lambda in the specified time.

Having said that, I create both the cloudwatch event and lambda using ansible. The invocation used to work sometimes. But when it fails, I want to know why it did. When the lambda is invoked and there is a failure within the lambda, I can go into the logs to get the reason. But the invocation failure is clueless.

And after creation, when I click on the target (from the cloudwatch event rule), it takes me to the right lambda and the lambda lists the cloudwatch event rule that (is supposed to) trigger(s) the lambda . As far as I can see the lambda policy includes the cloudwatch event rule in question.

Please let me know if I am missing anything or you need more information in this regard.

Thanks

已提問 7 年前檢視次數 1847 次
2 個答案
0

Were you able to solve this issue? I am having the exact same problem.

ck-yh
已回答 7 年前
0

Try this one guys...

https://stackoverflow.com/a/46365438/3362

The AWS:SourceAccount condition can't be used with AWS events for some reason.

Cluggas
已回答 7 年前

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

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

回答問題指南