Home icon

Announcing CDK Garbage Collection

DevOps & Developer Productivity Blog



AWS has announced the preview release of CDK Garbage Collection, a new feature in AWS CDK version 2.165.0 designed to automatically clean up unused assets in bootstrapped S3 buckets and ECR repositories.

  • Automatically identifies and deletes isolated or unused CDK assets
  • Helps developers save on storage costs
  • Provides customizable parameters like rollback-buffer-days and created-buffer-days
  • Accessible via the new CLI command `cdk gc`
  • Currently in preview mode, requires `--unstable=gc` flag

The feature aims to help CDK users manage asset lifecycles more efficiently, reducing unnecessary storage and simplifying infrastructure maintenance. Users are encouraged to provide feedback and incorporate it into their workflows.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jan 29
2025
Announcing the AWS CDK Glue L2 Construct
Sep 10
2025
Introducing AWS CDK Refactor (Preview)
Jan 31
2024
Announcing Generative AI CDK Constructs
May 18
2026
Announcing AWS CDK Mixins: Composable Abstractions for AWS Resources

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.