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

asked 7 years ago1819 views
2 Answers
0

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

ck-yh
answered 7 years ago
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
answered 7 years 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