I am using a restricted AWS account. Which has two roles:
- IAM (Allows all IAM permissions)
- Devops (Allows all permission except IAM Role creation)
Currently sls deploy
is trying to create two roles:
- IamRoleCustomResourcesLambdaExecution
- IamRoleLambdaExecution
I have removed the first role creation after defining role parameter in each functions.
Second role is getting created for s3 events to lambda execution.
Is there a way I can disable this role creation and manually create this role?