Skip to content

Commit bd02059

Browse files
gracelu0mrgrain
andauthored
fix(bootstrap): add DeletionPolicy and UpdateReplacePolicy to FileAssetsBucketEncryptionKey (#100)
- add DeletionPolicy and UpdateReplacePolicy to FileAssetsBucketEncryptionKey to follow best practice for stateful resources - bump bootstrap version --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license Co-authored-by: Momo Kornher <[email protected]>
1 parent bcef18b commit bd02059

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ Resources:
166166
Fn::Sub: "${FilePublishingRole.Arn}"
167167
Resource: "*"
168168
Condition: CreateNewKey
169+
UpdateReplacePolicy: Delete
170+
DeletionPolicy: Delete
169171
FileAssetsBucketEncryptionKeyAlias:
170172
Condition: CreateNewKey
171173
Type: AWS::KMS::Alias
@@ -657,7 +659,7 @@ Resources:
657659
Type: String
658660
Name:
659661
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
660-
Value: '25'
662+
Value: '26'
661663
Outputs:
662664
BucketName:
663665
Description: The name of the S3 bucket owned by the CDK toolkit stack

0 commit comments

Comments
 (0)