CloudFrontToS3
error "bucket already exists" when providing cloudFrontLoggingBucketProps.bucketName
#1121
Labels
CloudFrontToS3
error "bucket already exists" when providing cloudFrontLoggingBucketProps.bucketName
#1121
When providing
CloudFrontToS3
a bucketName for cloudFrontLoggingBucketProps, CDK returns an error<bucketname> already exists in <stackname>
Reproduction Steps
Error Log
16:20:42 | CREATE_FAILED | AWS::S3::Bucket | WebsiteCloudfrontC...gingBucket72256605
<bucket_name> already exists in stack <stack_name>
Environment
Other
Upon investigation, it seems that
CloudFrontToS3
creates four buckets, and not three as expected:S3Bucket
S3LoggingBucket
CloudfrontLoggingBucket
CloudfrontLoggingBucketAccessLog
As the last two buckets seem to read the same properties, CDK tries to create them with the same name, hence failing.
This conflicts with the expected architecture
I am not sure if one bucket is created and never used, or if all are needed and one needs some extra configuration.
My workaround for now is not to provide the bucket name.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: