An automated serverless solution for identifying and cleaning up idle AWS resources to optimize cloud costs.
| Dashboard | Resource Chart | Resource Summary |
|---|---|---|
![]() |
![]() |
![]() |
This FinOps system is built entirely on serverless AWS Lambda architecture with three specialized functions that demonstrate the power and flexibility of Lambda:
- Variable Workloads: FinOps scanning has unpredictable peaks
- Cost Efficiency: Pay only for actual analysis time
- Rapid Scaling: Handle enterprise AWS accounts with thousands of resources
- Zero Maintenance: Focus on business logic, not infrastructure
- Built-in Reliability: AWS handles availability and fault tolerance
📊 Lambda Function Specifications:
| Function | Memory | Timeout | Trigger | Purpose |
|---|---|---|---|---|
| Scanner | 256MB | 60s | EventBridge (cron) | Resource discovery |
| Analysis | 128MB | 10s | DynamoDB Streams | Risk assessment |
| API | 128MB | 20s | API Gateway | Dashboard backend |
🔧 System Components:
- scanner/ - Scheduled Lambda function for resource discovery
- analysis/ - Event-driven Lambda for intelligent risk scoring
- api/ - HTTP Lambda providing RESTful dashboard API
- frontend/ - Modern responsive web dashboard
- template.yaml - Complete SAM infrastructure definition
-
Deploy Infrastructure
sam build --use-container sam deploy --guided
-
Configure Frontend
# Update API URL in frontend/app.js # Set isDemo = false
-
Access Dashboard
- Open
frontend/index.htmlin browser - View idle resources and cleanup opportunities
- Open
Comprehensive technical documentation is organized in docs/technical/:
- 📋 Documentation Index - Start here for navigation
- 🏗️ System Architecture - System design and AWS integration
- 🚀 Deployment Guide - Step-by-step deployment instructions
- 🔌 API Reference - Complete API documentation with examples
- ⚖️ Algorithms & Logic - Scanning, scoring, and cost calculations
- 🔐 Security & Compliance - IAM policies, encryption, and audit trails
- 📊 Monitoring & Operations - CloudWatch, alerting, and troubleshooting
- Implementation Summary - Project status and what's built
- Original Project Brief - Problem statement and solution overview
- Lambda Metrics: Duration, errors, invocations
- Business Metrics: Resources found, cost savings
- Custom Dashboards: Executive and operational views
- Automated Alarms: System health and high-value alerts
GET /dashboard- Summary metrics and trendsGET /resources- Detailed resource listing with filtersPOST /cleanup- Resource cleanup actionsPOST /scan- Manual scan trigger
Primary Services:
- AWS Lambda - 3 serverless functions (Scanner, Analysis, API)
- Amazon DynamoDB - Data storage with Streams
- Amazon API Gateway - RESTful API endpoints
- Amazon EventBridge - Scheduled job execution
- Amazon SNS - Notifications and alerts
- Amazon CloudWatch - Monitoring and metrics
- AWS IAM - Security and access control
- AWS Cost Explorer API - Cost calculations
- Amazon EC2 API - Instance discovery
- Amazon RDS API - Database monitoring
- Amazon EBS API - Volume analysis
- AWS SAM - Infrastructure as Code
- AWS CloudFormation - Deployment engine
- AWS Application Insights - Automated monitoring


