serverless-iam-roles-per-function icon indicating copy to clipboard operation
serverless-iam-roles-per-function copied to clipboard

Is it possible to attach managed policy?

Open davorceman opened this issue 2 years ago • 4 comments

Is it possible to attach managed policies to roles created with this plugin? I'm deploying rest of the stack with TF or CF, and I would like to create managed policy with correct permissions to these resources needed for these lambdasw (Kinesis, DynamoDB, RDS...). Then I should be able to attach these managed policies to roles per function created with this plugin.

Something similar is possible without plugin, using just aws provider, but this is for all functions. I would like to have it per function :)

iam:
    role:
      managedPolicies:
        - arn:aws:iam::123456789:policy/myPolicy1
        - arn:aws:iam::123456789:policy/myPolicy2

davorceman avatar Jul 14 '22 11:07 davorceman

+1

s1mrankaur avatar Oct 13 '22 20:10 s1mrankaur