Hey, I'm Marat 👋
Published on

Automated AWS Resource Cleanup

Authors

Photo by Samantha Gades on Unsplash Photo by Samantha Gades on Unsplash

At Servian, we have close to 10 AWS accounts. Some are production accounts for our clients, others are for hosting our own internal applications and the remainder exist for consultant upskilling, experimentation, training, and presales activities.

A big problem with giving our consultants nearly free rein over our AWS accounts is having to deal with a lot of abandoned AWS resources that end up costing Servian hundreds if not thousands of dollars every month. One can argue that each and every consultant is responsible for tearing down whatever resources they stood up in the first place, but the burden of payment is still on Servian to bear.

Enter Auto Cleanup. A serverless application built using the Serverless Framework.

Auto Cleanup AWS architectureAuto Cleanup AWS architecture

In simple terms, Auto Cleanup will scan your account’s AWS resources (currently supports CloudFormation, DynamoDB, EC2, Lambda, RDS, and EC2). Once the application finds old abandoned resources, it promptly removes them from your account. In case users wanted to ensure certain resources are not removed, they can simply add them to the whitelist table.

To get started, simply head over to the GitHub page below and follow the installation instructions.

servian/aws-auto-cleanup