-
Notifications
You must be signed in to change notification settings - Fork 4.2k
chore(s3): updated documentation to provide better insights when using grant methods for the Bucket
resource
#34733
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
Conversation
…g grant methods for the `Bucket` resource
…g grant methods for the `Bucket` resource
|
||
The S3 construct library provides three grant methods for the `Bucket` resource that have a special behavior. All three accept an `objectsKeyPattern` parameter to restrict granted permissions to specific resources: | ||
- `grantRead` | ||
- `grantWrite` |
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 think grantWrite
is not applicable here, since the associated actions (DeleteObject*
, PutObject*
) are applicable at the object level: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html#amazons3-bucket.
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.
Fixed it
…g grant methods for the `Bucket` resource
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #34545 .
Reason for this change
Current behavior in some
grant
methods for theBucket
resource might cause confusion and be seen as a bug.Description of changes
Added more details on the policy specifics, explaining why the current behavior is like that, and added additional resources if the implementer needs to restrict even more their permissions.
Describe any new or updated permissions being added
N/A
Description of how you validated changes
N/A. Just documentation being updated.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license