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

customize-the-serverless-iam-policy.md - suggestions #439

Open
Lior-G opened this issue Feb 1, 2020 · 4 comments
Open

customize-the-serverless-iam-policy.md - suggestions #439

Lior-G opened this issue Feb 1, 2020 · 4 comments

Comments

@Lior-G
Copy link
Contributor

Lior-G commented Feb 1, 2020

under "An advanced IAM Policy template", recommending the following updates

  • update (twice)

Why: PATCH is needed for any deployment after the first one

"apigateway:GET",
"apigateway:POST",
"apigateway:PUT",
"apigateway:DELETE"

to

"apigateway:GET",
"apigateway:PATCH",
"apigateway:POST",
"apigateway:PUT",
"apigateway:DELETE"
  • update

WHY: ensure code only has access to S3 permissions within project; create, update, delete, list

"arn:aws:s3:::*"

to

"arn:aws:s3:::<service_name>*"
  • update

WHY: ensure code only has access to S3 permissions within project; upload

"arn:aws:s3:::*/*"

to

"arn:aws:s3:::<service_name>*/*"
@jayair
Copy link
Contributor

jayair commented Feb 8, 2020

Yeah these make sense. Do you mind editing the chapter and submitting a PR?

@Lior-G
Copy link
Contributor Author

Lior-G commented Feb 10, 2020

Yeah these make sense. Do you mind editing the chapter and submitting a PR?

Jay:
sure, no problem.
Looking at your CONTRIBUTING.md, don't see if there is a branching naming convention, or steps to properly submit a PR.
Is there any? if so, can you please point me to it?

@jayair
Copy link
Contributor

jayair commented Mar 8, 2020

For this case you can simply edit this chapter through the GitHub web interface and submit a PR. Does that make sense?

@Lior-G
Copy link
Contributor Author

Lior-G commented Mar 9, 2020 via email

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