You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was deploying a simple (admin) only django install to test zappa and the zappa init was fine but on my first run of zappa deploy dev I go the error in the title
Python 3.12
Expected Behavior
I expected to get through to Deployment complete
Actual Behavior
An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: The role defined for the function cannot be assumed by Lambda.
Context
I was deploying a simple (admin) only django install to test zappa and the zappa init was fine but on my first run of zappa deploy dev I go the error in the title
Python 3.12
Expected Behavior
I expected to get through to Deployment complete
Actual Behavior
An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: The role defined for the function cannot be assumed by Lambda.
Possible Fix
https://stackoverflow.com/a/37438525/2434654 this link suggested sleeping a few seconds so I tried it again and it got to Deployment complete.
Perhaps introduce a pause in the deployment after the upload to wait for the role to be ready if others have this issue.
Steps to Reproduce
Your Environment
0.59.0
pip freeze
:zappa_settings.json
:The text was updated successfully, but these errors were encountered: