functionalone / serverless-iam-roles-per-function

Serverless Plugin for easily defining IAM roles per function via the use of iamRoleStatements at the function level.
MIT License
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

s1mrankaur commented 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:

If this isn't supported currently by the package, what are my options?