Serverless Plugin for easily defining IAM roles per function via the use of iamRoleStatements at the function level.
411
stars
58
forks
source link
How to add conditions to the IAM role statements for a specific function: #129
Open
s1mrankaur opened 3 months ago
Here's a basic example of what I'd like to be able to do:
`service: my-service
provider: name: aws runtime: nodejs18.x
plugins:
functions: myFunction: handler: handler.myFunction iamRoleStatements:
Effect: Allow Action:
secondFunction: handler: handler.secondFunction iamRoleStatements:
Effect: Allow Action:
anotherFunction: handler: handler.anotherFunction iamRoleStatements:
If this isn't supported currently by the package, what are my options?