Skip to content

jmeyers91/cdk-ez-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdk-ez-cleanup

Easily delete Cloudformation stacks created using the AWS CDK without having to worry about removal policies or delete protection settings. This package is not intended for production environments.

Features

  • Sets all removal policies to RemovalPolicy.DESTROY
  • Disables delete protection on RDS database instances and clusters
  • Disables termination protection on EC2 instances

Install

npm i cdk-ez-cleanup

Usage

Call the ezCleanup function on your CDK stack to apply easy cleanup settings.

ezCleanup(stack);

Alternatively, you can manually create an EzCleanupAspect and add it to a construct's aspect list.

Aspects.of(stack).add(new EzCleanupAspect());

About

Easily cleanup AWS CDK resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published