Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
/ cdk-gc Public archive

Garbage collects CDK S3 Deployment Bucket

License

Notifications You must be signed in to change notification settings

onhate/cdk-gc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

CDK has officially released a gc feature https://docs.aws.amazon.com/cdk/v2/guide/ref-cli-cmd-gc.html

cdk-gc

Overview

cdk-gc is a utility CLI tool designed to assist in the cleanup of unused assets of your CDK AWS CloudFormation stacks. It identifies and removes assets stored in the CloudFormation Deployment buckets that are no longer referenced by active stacks.

see aws/aws-cdk-rfcs#64

Usage

npx onhate/cdk-gc gc --profile <your-aws-profile> --region <your-aws-region> [--yes]

Options

  • --profile: Specify the AWS profile to use for authentication. (optional)
  • --region: Set the AWS region for the cleanup operation.
  • --yes (Optional): Confirm and execute the cleanup (default to dry-run).

Note: Use this utility with caution, and thoroughly review the identified assets before confirming the cleanup.

About

Garbage collects CDK S3 Deployment Bucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published