Open sarink opened 1 year ago
How can you enable ACLs for an S3 bucket with pulumi? Looking for this option
@sarink
Here's what worked for me:
new s3.BucketOwnershipControls("bucket-ownership-controls", {
bucket: THE_BUCKET,
// For options check https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
rule: { objectOwnership: "ObjectWriter" },
})
new s3.BucketPublicAccessBlock("bucket-public-access-block", {
bucket: THE_BUCKET,
// allows the object writer to set public ACLs
blockPublicAcls: false,
})
(found on https://blog.rishabkumar.com/deploying-a-static-website-to-aws-with-pulumi)
same issue here
What happened?
AWS no longer allows ACLs for new buckets. However, the
acl
key is required onsynced.S3BucketFolder
, making it unusableExpected Behavior
Expected creating an s3 bucket folder to work
Steps to reproduce
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).