Skip to content

(Bootstrap stack): (Abort failed multipart upload after 7 days) #29045

@nikhil-zadoo

Description

@nikhil-zadoo

Describe the feature

Enable lifecycle rule to abort multipart uploads after 7 days for assets bucket rolled out with CDK bootstrap.

Use Case

I realized the configuration after trusted advisor rolled out a new check. Reference : https://docs.aws.amazon.com/awssupport/latest/user/cost-optimization-checks.html#s3-incomplete-multipart-upload-abort-config

Makes sense that any failed multipart uploads are deleted after 7 days. This is to ensure that the failed parts don't unnecessarily take up s3 space and cause costs.

Proposed Solution

Enable lifecycle rule to delete failed multipart uploads in case of s3 assets bucket rolled out with cdk bootstrap.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.114.1

Environment details (OS name and version, etc.)

MACOS, LINUX

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-s3Related to Amazon S3effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p1package/toolsRelated to AWS CDK Tools or CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions