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

documentation for policy.json #1402

Open
beugene-orcher opened this issue Apr 23, 2020 · 2 comments
Open

documentation for policy.json #1402

beugene-orcher opened this issue Apr 23, 2020 · 2 comments
Labels

Comments

@beugene-orcher
Copy link

@beugene-orcher beugene-orcher commented Apr 23, 2020

Hello,
Thanks for the job you've done! Chalice is the very easy framework for newcomers and flask developers.

I've been learning the framework only for 2 weeks and regularly getting errors related with aws policies. The official content about the policies is minimal. And auto-policy can't do this job by the right way if you want to add more than just a 'hello world' function.

Run chalice gen-policy (chalice==1.13.1) returns only:

{
  "Version": "2012-10-17",
  "Statement": []
}

It absolutely doesn’t help me in setting up the policy of an application that is already using dynamodb, sns and s3.

Is there an extended documentation describing the policy.json or examples for regular cases, list of actions and values.

@jamesls
Copy link
Member

@jamesls jamesls commented Apr 23, 2020

There's some info about policy generation here: https://chalice.readthedocs.io/en/latest/quickstart.html#tutorial-policy-generation, as well as more information about config values here: https://chalice.readthedocs.io/en/latest/topics/configfile.html. Do you think a separate doc page all about IAM policy generation options would be helpful?

@beugene-orcher
Copy link
Author

@beugene-orcher beugene-orcher commented Apr 23, 2020

@jamesls Thanks, but I've checked the links before.
The section "Manually Providing Policies" is provided info but not enough. It will be helpful to expand this section by:

  1. list of available actions of supported amazon services for manually providing policies;
  2. little bit more about available keys and values of policy.json;
  3. more examples how to provide a policy in popular cases: retrieving data from dynamodb, subscribing to sns notifications etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.