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

posta 7 anni fa1847 visualizzazioni
2 Risposte
0

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

ck-yh
con risposta 7 anni fa
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
con risposta 7 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande