Skip to content

Conform to SLS v3 iam format? #125

@henhal

Description

@henhal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions