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

iam:CreateRole fails with an explicit deny #3

Open
sfc-gh-rfehrmann opened this issue Jan 25, 2021 · 1 comment
Open

iam:CreateRole fails with an explicit deny #3

sfc-gh-rfehrmann opened this issue Jan 25, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@sfc-gh-rfehrmann
Copy link

When you deploy the project into an environment that uses AWS permissions boundaries (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) it fails with a role creation error. In my case, Roles could only be created with permissions boundaries applied. Since permissions boundaries are specific to the customer environment, I am not sure if this can be fixed in a generic sense. In my case I was able to fix the problem by setting the rolePermissionsBoundary attribute for the provider in the serverless yaml configuration file:

provider:
...
RolePermissionsBoundary: ....

Maybe it would be a good idea just to mention this in the documentation.

Another suggestion for a documentation enhancement is to mention the AWS permissions needed for this project:

  • IAM
  • S3
  • CloudFormation
  • APIGateway

BTW, this is an excellent post. Really enjoyed it.

@tfoldi
Copy link
Member

tfoldi commented Jan 25, 2021

Hi Robert, I will include it in the documentation. Also, I will link this Serverless policy generator as well: https://open-sl.github.io/serverless-permission-generator/ , probably that will be enough.

@tfoldi tfoldi added the documentation Improvements or additions to documentation label Jan 25, 2021
@tfoldi tfoldi self-assigned this Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants