Skip to content

Commit b800da8

Browse files
feat(bootstrap): add lifecycle rule to abort multipart uploads after 7 days (#31956)
Closes #29045 ### Reason for this change AWS Trusted Advisor rolled out the S3 Incomplete Multipart Upload Abort Configuration check to help users manage costs associated with Amazon S3 storage ### Description of changes Added a new lifecycle rule to the bucket and incremented the bootstrap version to 24. ### Description of how you validated changes N/a ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 077262f commit b800da8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ Resources:
212212
Status: Enabled
213213
NoncurrentVersionExpiration:
214214
NoncurrentDays: 30
215+
- Id: AbortIncompleteMultipartUploads
216+
Status: Enabled
217+
AbortIncompleteMultipartUpload:
218+
DaysAfterInitiation: 1
215219
UpdateReplacePolicy: Retain
216220
DeletionPolicy: Retain
217221
StagingBucketPolicy:
@@ -653,7 +657,7 @@ Resources:
653657
Type: String
654658
Name:
655659
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
656-
Value: '24'
660+
Value: '25'
657661
Outputs:
658662
BucketName:
659663
Description: The name of the S3 bucket owned by the CDK toolkit stack

0 commit comments

Comments
 (0)