How to Use AWS Lambda to Cleanup Unused EBS Volumes

Written by Mohamed Labouardy

June 19, 2018

One of the main benefits of using Serverless is automation due to it’s event-driven and pricing models. In this post, we will walk through how to use AWS Lambda to cleanup unused EBS volumes to reduce the infrastructure’s monthly bill.

The figure below illustrates the architecture we will setup in order to remove orphaned volumes:

About the author

Mohamed Labouardy is a Software Engineer/DevOps Engineer, 5x AWS Certified and Scrum Master Certified. He is interested in Serverless Architecture, Containers, Distributed Systems, Go & NLP. A Contributor to numerous Open Source projects such as DialogFlow, Jenkins, Docker, Nexus and Telegraf. He authored some Open Source projects related to DevOps as well.Check out his website here.