I have a role definition in my
serverless.yml which provides Lamdba functions the right to execute:
- Effect: Allow
In my Dev environment this works just fine but now that I want to deploy to Prod I have a problem. It seems that when you deploy to a new stage it doesn't setup the roles first and therefore my deployment fails because the functions depend on the role but the role hasn't been created yet.
How can I get around this? Can I deploy only the resources?