From 92cadef4b969d4fd199042d926470d1abb1c734e Mon Sep 17 00:00:00 2001 From: Kaito Udagawa Date: Mon, 14 Jun 2021 22:56:27 +0900 Subject: [PATCH] chore(bootstrap): enable s3 versioning (#14987) It would be great to enable S3 versioning on CDK's staging bucket. This would be a safer option and consistent with UpdateReplacePolicy and DeletionPolicy being Retain. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml b/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml index eec900592e641..166e2fa6d4ba2 100644 --- a/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml +++ b/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml @@ -178,6 +178,8 @@ Resources: IgnorePublicAcls: true RestrictPublicBuckets: true - Ref: AWS::NoValue + VersioningConfiguration: + Status: Enabled UpdateReplacePolicy: Retain DeletionPolicy: Retain StagingBucketPolicy: