npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cdk-aws-cleaner

v1.3.6

Published

The construct cleans up the stack it is integrated with after a defined time period has passed.

Downloads

3,733

Readme

npm GitHub last commit (branch) GitHub issues

AWS CDK Auto-Deletion Construct: Automate CloudFormation stack removal after a set time.

Simplifies cleanup, reduces costs, and promotes efficient resource management.

This is espacially useful, if you deploy a demo stack or an expirement. It will be removed automatically for you.

The AWS CDK Auto-Deletion Construct is a powerful infrastructure-as-code (IaC) tool that enables you to automatically remove an AWS CloudFormation stack after a specified period. Built on top of the AWS Cloud Development Kit (CDK), this construct simplifies the process of managing the lifecycle of your infrastructure resources.

By leveraging the AWS CDK Auto-Deletion Construct, you can ensure the efficient usage of your AWS resources while avoiding unnecessary costs and clutter in your AWS account. This construct automates the deletion of stacks that are no longer needed, streamlining the cleanup process and promoting a tidy and cost-effective environment.

Key Features:

Automated Stack Removal: The Auto-Deletion Construct enables you to set an expiration time for your CloudFormation stack. Once the specified time has elapsed, the construct automatically triggers the removal process, effectively eliminating the need for manual intervention.

Seamless Integration: The Auto-Deletion Construct seamlessly integrates with existing AWS CDK applications. You can easily incorporate it into your CDK stacks, alongside other constructs, to enable automatic deletion functionality for specific resources or entire infrastructure deployments.

Security and Control: The Auto-Deletion Construct follows AWS best practices for security and permissions. This helps prevent accidental or unauthorized deletions.

Notifcation: You are now informed via mail, when the remval of the stack is triggered.

The AWS CDK Auto-Deletion Construct empowers developers and DevOps teams to effectively manage their AWS infrastructure by automating the removal of unused resources. With its simplicity, flexibility, and integration capabilities, this construct streamlines the cleanup process and optimizes resource utilization, ultimately contributing to a more cost-efficient and organized AWS environment.

TL;TR;

Use our construct by installing the module and using our construct in your code:

npm i -g aws-cdk
npm i aws-cdk-lib 
npm i cdk-aws-cleaner
  import { AwsCleaner } from 'cdk-aws-cleaner'
    new AwsCleaner(this, 'aws-cleaner', {
      cleanup: cdk.Duration.minutes(60),
      email: "[email protected]"
    });

Properties

| Name | Type | Description | | ------------------------------------------------------------------------------------- | --------------------------------- | --------------------------------- | | cleanup | aws-cdk-lib.Duration | When the Stack should be removed. |


cleanupRequired
public readonly cleanup: Duration;
  • Type: aws-cdk-lib.Duration

When the Stack should be removed.

For any further assistance or support, please don't hesitate to contact us at [email protected]. We are a German company based in Hamburg, specializing in AWS services and solutions.