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

Add Ability to Reference Existing Roles #66

Open
sam-mundle opened this issue Dec 11, 2020 · 1 comment
Open

Add Ability to Reference Existing Roles #66

sam-mundle opened this issue Dec 11, 2020 · 1 comment

Comments

@sam-mundle
Copy link

The title pretty much says it all. Would be great because we maintain all of our roles in a separate system and we want to keep our serverless.yml as short as possible

@MozartLino
Copy link
Contributor

MozartLino commented Dec 21, 2020

I think you don't need this plugin, You can use the role property to define an existing role:

Ex:

some:
  handler: index.someHandler
  role: arn:aws:iam::xxxxxx:role/role-that-already-exists

for more information: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html#sam-function-role

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