-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(s3): Add support for BucketOwnerEnforced to S3 ObjectOwnership Type #17926
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p1
Comments
JonBlauvelt
pushed a commit
to JonBlauvelt/aws-cdk
that referenced
this issue
Dec 11, 2021
JonBlauvelt
pushed a commit
to JonBlauvelt/aws-cdk
that referenced
this issue
Dec 11, 2021
JonBlauvelt
pushed a commit
to JonBlauvelt/aws-cdk
that referenced
this issue
Dec 13, 2021
JonBlauvelt
pushed a commit
to JonBlauvelt/aws-cdk
that referenced
this issue
Dec 13, 2021
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p1
Description
Object Ownership for an S3 bucket has three settings that you can use to control ownership of objects uploaded to a bucket and to disable or enable ACLs. The AWS recommended setting for object ownership is Bucker Owner Enforced. This is also reflected in the AWS S3 Console in the 'Edit Object Permissions' modal accessible from an S3 buckets 'Permissions' tab.
The CDK ObjectOwnership Type currently offers two of the options in its list of members.
The request is to add support for the third option BucketOwnerEnforced. This value is already available in the Cloud Formation AWS::S3::Bucket OwnershipControlsRule resource.
Use Case
Allow us to use the AWS recommended setting for S3 bucket object ownership when creating s3 buckets.
Proposed Solution
Add BucketOwnerEnforced to the bucket ObjectOwnership enum :
aws-cdk/packages/@aws-cdk/aws-s3/lib/bucket.ts
Lines 1173 to 1182 in dd5e12d
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: