-
Notifications
You must be signed in to change notification settings - Fork 55
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 storage access rules to outputs #1927
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 3471c97 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall change looks good to me.
Question on npx ampx generate outputs
, will customer be able to specify and generate version like 1, 1.1, 1.2?
Yes they can specify using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice the access can be 1 of enum value from 2 sets: read | write | delete
or get | list | write | delete
. Is it possible the output file only use the later one? It would make client side logic a lot easier.
The DX from the PR description makes sense. The JS library can resolve which of the |
Yes we can make this change |
Functions specifically have separate logic through environment variables that reference the resource they are given access to to avoid circular dependencies. For more information see https://docs.amplify.aws/flutter/build-a-backend/functions/grant-access-to-other-resources/. |
Problem
Storage access rules defined in
defineStorage
are not inamplify_outputs.json
.Issue number, if available:
Changes
Adds storage access rules to
amplify_outputs.json
. Considering the following backend code:The outputs for storage will be (note:
read
is replaced withget
andlist
):Corresponding docs PR, if applicable:
Validation
E2E and unit tests
Checklist
run-e2e
label set.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.