Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove README.md instructions for using custom IAM policy via `attach_policy` #2079
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The README at https://github.com/Miserlou/Zappa#custom-aws-iam-roles-and-policies-for-execution talks about using
manage_roles: false
to manually set a role for custom permissions.This along with #244 led me down a rabbit hole.
However, if all you want to do is restrict the permissions of the Lambda itself, it seems that the partially documented
attach_policy
is a much better option because this keeps the policy managed by Zappa (no need for manual steps).Might be worth adding this as an option to the "IAM Roles and polices" section because surely this will solve 95% of requirements for users?
E.g. here is my
settings.json
:And my
aws_attach_policy.json
:(In my case I didn't need much permissions, but you get the idea).