Open saeedesmaili opened 3 years ago
Which role are you showing the permissions of here? The role that needs the events.amazonaws.com as a trusted entity is the role that's attached to your lambda. I believe that's role/zappa-test-dev-ZappaLambdaExecutionRole in your case, but you're showing that assigned here which makes me think this is the wrong role.
Navigate to your lambda, find out what role it's executing with, then assign that role the trusted entities. If you are showcasing that here, then more troubleshooting will be needed.
@hortonew The screenshot belongs the arn:aws:iam::199151782709:role/contactclipper2-event-dev-event-ZappaLambdaExecutionRole
Role that the error says it doesn't have events.amazonaws.com
trsuted entity (but it has).
I navigated a lot in the Lambda's permissions and roles and couldn't find the problem. I even gave the administrator access to the user but I still get this error.
I have a flask project and it is deployed to the AWS Lambda using the Zappa, and it works fine. I'm trying to add an event in the
zappa_settings.json
to run some function regularly. The settings config that was working (without events) was:and I added these two lines, so the settings changed to:
But now I can't update or schedule the project and I get this error:
This is the role's trust entities:![image](https://user-images.githubusercontent.com/13351748/94269461-8d82a180-ff4b-11ea-8a3f-61623a6c130e.png)
What should I do to fix this and have a working event (cron job)?