Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conform to SLS v3 iam format? #125

Open
henhal opened this issue Apr 17, 2023 · 1 comment
Open

Conform to SLS v3 iam format? #125

henhal opened this issue Apr 17, 2023 · 1 comment

Comments

@henhal
Copy link

henhal commented Apr 17, 2023

In earlier SLS versions, iamRoleStatements was the key used under provider to specify shared IAM role statements.
In this plugin, the same syntax is used to define statements per function.

In SLS v3, iamRoleStatements was replaced by

iam:
  role:
   statements:

Any thoughts on following this syntax also for the per-function directives, such as

functions:
  MyFunction:
    iam:
      role:
        statementsInherit: true
        statements:
          - Effect: Allow
          - Action: dynamodb:*
          - Resource: xxxx

to support the other IAM related functionality now supported on the provider level such as managedPolicies, permissionsBoundary etc?

@Victor-Learned
Copy link

FYI: this plugin is basically abandoned by the owner. Looks like it's been forked an is taking updates here https://github.com/andersquist/serverless-iam-roles-per-function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants