I'm trying to create a S3 bucket with this configuration via CDK:
However, with this code:
Bucket.Builder.create(this, "test1") .bucketName("com.myorg.test1") .encryption(BucketEncryption.KMS_MANAGED) .bucketKeyEnabled(true) .build()
I'm getting this error:
Error: bucketKeyEnabled is specified, so 'encryption' must be set to KMS (value: MANAGED)
This seems like a bug to me, but I'm relatively new to CDK so I'm not sure. Am I doing something wrong, or is this indeed a bug?
https://stackoverflow.com/questions/66501392/cant-create-a-s3-bucket-with-kms-managed-key-and-bucketkeyeneabled-via-cdk March 06, 2021 at 09:06AM
没有评论:
发表评论