โ† Back to Technical Blog

๐Ÿง  AWS Unused Resource Detector

๐Ÿ’ฅ How I stopped burning money on forgotten AWS resources (and built a Lambda to do it for me)

๐Ÿ” The Realization

You know that feeling when you check the AWS bill and mutter, "Wait... why is it $600 this month?"

Welcome to the wonderful world of cloud waste โ€” the graveyard of dev/test instances, unattached EBS volumes, and Elastic IPs floating around like lost luggage.

I originally built this while working at AlphaPoint, where we had multiple AWS accounts and environments spinning up and down for blockchain trading experiments. Cloud waste was real.

At one point, we were paying monthly for resources we didnโ€™t even know existed. There was no alert. No dashboard. Just a bill and some confusion.

๐Ÿ˜… My Breaking Point

One Monday, I found an EC2 instance labeled alpha-lambda-test-final3 that had been running untouched for 19 days.
The kicker? It wasnโ€™t even mine.

๐Ÿ› ๏ธ My Fix: A Serverless Snitch ๐Ÿ•ต๏ธโ€โ™‚๏ธ

I built a Lambda-based detector and predictor that:

Unlike AWS Cost Explorer, which takes time to reflect changes, this script gives you a snapshot of your cloud waste and future savings in real time.

๐Ÿ’ก Pro Tip

Elastic IPs are only free if theyโ€™re attached.
Otherwiseโ€ฆ theyโ€™re quietly draining your budget.
Ask me how I know.

๐Ÿ“ฌ GitHub Link (You Know You Want It)

This is a cleaned-up, open-source version you can fork, clone, or flex at your next standup:
๐Ÿ‘‰ github.com/chinmaya-chhatre/aws-unused-resource-detector

๐Ÿ“ˆ What Changed

โš–๏ธ Tradeoffs I Made

๐Ÿง  What I'd Add Next

๐Ÿงต Why Iโ€™m Sharing This

Because cost control shouldnโ€™t feel like wizardry.
Because not every solution needs 6 dashboards and a 12-week roadmap.
Because sometimes, a 100-line Lambda script saves you thousands.
And because no one wants to explain a surprise AWS bill to leadership.

๐Ÿ“Ž Bonus Links