I have a lambda created by following aws tutorial on how to create a scheduler to trigger lambda.
I have checked several times to make sure the lambda has the suggested role properties that tutorial mentions with the scheduler and a permission to the scheduler. I have them all deployed as a stack via CloudFormation Template. Unfortunately I cannot share the CFT, you just have to trust me on this.
I am looking for possible reasons that could cause what I see, which is on every invocation coming from CloudWatch Events there is an invocation error recorded on the monitoring tab of my lambda page. Unfortunately nothing is being logged and I do not have CloudTrail enabled to have anyway to troubleshoot this via logs.
To sum up, stack has:
- Lambda function X
- CloudWatch Events scheduler to call function X every some minutes
- Permission to the scheduler to invoke lambda
- Lambda role
I cannot share the CFT but it is pretty much same as what this blog mentions.
aws lambda get-policy --function-name <name>
for your function? – Brandon Miller