Weekend Annoying Task Challenge: AWS FinOps Cleanup Advisor
Every weekend I build something with AWS and every weekend I leave behind CloudWatch logs, snapshots, and other resources that quietly increase my AWS bill. So I built an AI-powered FinOps advisor that continuously finds those hidden costs for me before they become expensive surprises.
Every weekend I build something with AWS and every weekend I leave behind CloudWatch logs, snapshots, and other resources that quietly increase my AWS bill.
So I built an AI-powered FinOps advisor that continuously finds those hidden costs for me before they become expensive surprises.
Vision & What the App Does
Over time, every AWS account accumulates resources that are no longer needed—CloudWatch log groups from completed projects, unattached EBS volumes, unused AMIs, idle EC2 instances, and forgotten networking resources. Individually these may not cost much, but together they can quietly increase your AWS bill and make your environment harder to manage.
The AWS FinOps Cleanup Advisor is an always-on AI-powered assistant that continuously scans your AWS environment, identifies potential cost optimization opportunities, and delivers easy-to-understand recommendations directly to your inbox.
Rather than automatically deleting resources, the solution operates in advisory mode, allowing you to review AI-generated recommendations and decide what action, if any, should be taken. The goal is to make AWS cost optimization proactive instead of becoming another manual maintenance task that is easy to forget.
How I Built It
I wanted to build a solution that could run with minimal operational overhead while providing meaningful insights instead of just raw inventory data.
The application periodically scans AWS resources across one or more Regions, aggregates the findings, and uses Amazon Bedrock to generate intelligent recommendations, risk assessments, and prioritization. Those insights are then formatted into a professional HTML report and delivered via email.
One of the key design decisions was to keep the solution completely serverless so it can run automatically without requiring any infrastructure management. Another important decision was to keep the advisor read-only, ensuring that users always remain in control of any cleanup activities.
AWS Services Used / Architecture Overview
The solution is built entirely using AWS managed services, including:
- Amazon EventBridge Scheduler
- AWS Lambda
- Amazon Bedrock
- Amazon SES
- Amazon DynamoDB
- Amazon S3
- Amazon CloudWatch
- AWS Cost Optimization Hub
High-Level Architecture
EventBridge Scheduler
│
▼
AWS Lambda
│
├── Scan AWS Resources
├── Analyze Findings with Amazon Bedrock
├── Generate HTML Report
├── Store Historical Results
└── Send Email via Amazon SES

The advisor is triggered on a configurable schedule (daily or weekly), performs resource discovery, enriches the findings with AI-generated recommendations, stores historical results, and emails a summary report to the configured recipients.
What I Learned
This project gave me an opportunity to explore how generative AI can enhance traditional FinOps workflows.
Instead of simply reporting unused resources, Amazon Bedrock can provide contextual recommendations, explain why a resource was flagged, and help prioritize actions based on confidence and potential risk. I also enjoyed designing an event-driven, serverless architecture that can operate continuously with very little ongoing maintenance.
More importantly, it reinforced that AI agents don't always need to take action they can also serve as trusted advisors that help users make better operational decisions.
Link to Repo
The complete source code, deployment instructions, and documentation are available on GitHub:
GitHub Repository:
Example Email Report:

I'd love to hear your feedback or ideas for additional scanners and FinOps recommendations that could be added in future releases.
Thanks,
𝒢𝒾𝓇𝒾𝓈𝒽 ℬ𝒽𝒶𝓉𝒾𝒶
𝘈𝘞𝘚 𝘊𝘰𝘮𝘮𝘶𝘯𝘪𝘵𝘺 𝘉𝘶𝘪𝘭𝘥𝘦𝘳 | 𝘈𝘐 𝘌𝘯𝘨𝘪𝘯𝘦𝘦𝘳𝘪𝘯𝘨
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘚𝘰𝘭𝘶𝘵𝘪𝘰𝘯 𝘈𝘳𝘤𝘩𝘪𝘵𝘦𝘤𝘵
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘋𝘦𝘷𝘦𝘭𝘰𝘱𝘦𝘳 𝘈𝘴𝘴𝘰𝘤𝘪𝘢𝘵𝘦
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘎𝘦𝘯𝘈𝘐 𝘗𝘳𝘢𝘤𝘵𝘪𝘵𝘪𝘰𝘯𝘦𝘳
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘊𝘭𝘰𝘶𝘥 𝘗𝘳𝘢𝘤𝘵𝘪𝘵𝘪𝘰𝘯𝘦𝘳
𝘈𝘞𝘚 𝘊𝘭𝘰𝘶𝘥 𝘛𝘦𝘤𝘩𝘯𝘰𝘭𝘰𝘨𝘺 𝘌𝘯𝘵𝘩𝘶𝘴𝘪𝘢𝘴𝘵
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article