sktan / aws-sandbox-stack-cleanup

A serverless way to automatically clean up your AWS Sandbox Account and reduce the likelihood of bill-shock from forgotten experiments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Sandbox Stack Cleanup

I'm sure everyone working with AWS has a similar story to tell. You spin up a few resources, go away for lunch or for the weekend and then completely forget about it. The only reminder of your forgotten experiment is the bill you receive after the first few days of the following month. What was supposed to be a small couple-dollar exercise has now turned into a double-digit or triple-digit bill. This story is commonly told in sandbox environments, where users are encouraged to experiment with AWS services.

This repository contains a CloudFormation template that will help you clean up your AWS sandbox account 48 hours after a stack has been created.

Architecture

Architecture

How to Deploy

You can use CDK to deploy the stack directly from the cdk directory:

cd cdk
cdk deploy

Or you can deploy the pre-built CloudFormation template from the cloudformation directory via the CloudFormation UI.

About

A serverless way to automatically clean up your AWS Sandbox Account and reduce the likelihood of bill-shock from forgotten experiments

License:MIT License


Languages

Language:Python 77.6%Language:Shell 17.5%Language:Dockerfile 4.9%