Package Exports
- serverless-attach-managed-policy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-attach-managed-policy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
serverless-attach-managed-policy
A serverless plugin to automatically attach an AWS Managed IAM Policy (or Policies) to all IAM Roles created by the Service.
Install
npm install --save-dev serverless-attach-managed-policy
Add the plugin to your serverless.yml file:
plugins:
- serverless-attach-managed-policyConfiguration
For a single Policy.
provider:
name: aws
managedPolicyArns: 'arn:aws:iam::789763425617:policy/someteam/MyManagedPolicy-3QUG1777293EJ'For a multiple Policies.
provider:
name: aws
managedPolicyArns:
- 'arn:aws:iam::789763425617:policy/someteam/MyManagedPolicy-3QUG1777293EJ'
- 'arn:aws:iam::789763425617:policy/someteam/AnotherManagedPolicy-F6NZ1321293EJ'