-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Feat: Add Support for S3 Object Ownership Controls #209
Conversation
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.
Bridgecrew has found infrastructure configuration errors in 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.
Change details
-
Error ID Change Path Resource BC_AWS_NETWORKING_65 Fixed /main.tf aws_cloudfront_distribution.default BC_AWS_NETWORKING_63 Fixed /main.tf aws_cloudfront_distribution.default
/test all |
Breaking because of new plan-time validation in https://github.com/hashicorp/terraform-provider-aws/releases/tag/v3.71.0 EDIT: fixed by #208 |
This Pull Request has been updated, so we're dismissing all reviews.
/test all |
what
why
S3 object ownership controls should be configurable for the origin bucket behind the CloudFront distribution. If the origin bucket is used within CI pipelines, cross-account writes to the bucket will result in the object being owned by that account. This can result in 403's when attempting to access content in the CF distribution, unless the S3 object ownership setting is set to
BucketOwnerEnforced
.The new S3 object ownership variable has as a default value that has the same effect if the new
s3_bucket_ownership_controls
were not to exist at all. Thus, this is a backwards-compatible release.references