late-journalist-61387
09/29/2023, 7:48 PMerror creating S3 bucket ACL for code-build-bucket-uat-website-f9ff2ef: AccessControlListNotSupported: The bucket does not allow ACLs
and here is the pulumi.ai suggestion:
const bucketPolicy = new aws.s3.BucketPolicy(`code-build-bucket-${stackName}-${serviceName}-policy`, {
bucket: cacheBucket.bucket,
policy: pulumi.interpolate`{
"Version": "2012-10-17",
"Statement": [{
"Sid": "IPAllow",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::code-build-bucket-${stackName}-${serviceName}/*",
"Condition": {
"Bool": { "aws:SecureTransport": "false"}
}
}]
}`
})
incalculable-motherboard-92742
10/02/2023, 8:38 PMlate-journalist-61387
10/03/2023, 8:03 AM