aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.68k stars 3.93k forks source link

feat(bootstrap): delete noncurrent versions after 30 days #31949

Closed kaizencc closed 2 weeks ago

kaizencc commented 2 weeks ago

CDK assets in the bootstrap bucket are content-addressed and immutable so we never naturally create noncurrent versions. However, with the introduction of the cdk gc command, we now have the capacity to delete unused objects in the bucket. Because the bucket is versioned by default, the delete command actually just replaces the object with a new dummy version (thus the deleted object becomes noncurrent).

Now that noncurrent objects can happen, if one utilizes cdk gc, we are updating the bootstrap template to retain them for 30 days rather than 365 days.

Update to bootstrap version 24 to use this new lifecycle policy in conjunction with cdk gc.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

mergify[bot] commented 2 weeks ago

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

aws-cdk-automation commented 2 weeks ago

AWS CodeBuild CI Report

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

mergify[bot] commented 2 weeks ago

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

github-actions[bot] commented 2 weeks ago

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.