tharunkumaran11 /
aws-cost-monitoring-platform
Serverless AWS FinOps platform for automated cloud cost monitoring and optimization using AWS Lambda, EventBridge Scheduler, SNS, CloudWatch, and Cost Explorer.
59/100 healthLoading repository data…
NISHANTHK-JD / repository
Serverless AWS FinOps automation to remove unused EBS volumes and orphaned snapshots using Lambda, Terraform and SNS
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
In large AWS environments, unused EBS volumes and orphaned snapshots silently accumulate over time — especially after EC2 instances are terminated — leading to unnecessary cloud storage costs that are often overlooked.
This project delivers a fully automated, serverless solution to detect and clean up these resources on a scheduled basis, with built-in compliance controls and security alerts — saving up to 30% on monthly AWS storage costs.
┌──────────────────────────────────────────────────────────────┐
│ AWS Cloud Environment │
│ │
│ ┌─────────────────┐ triggers ┌──────────────────┐ │
│ │ CloudWatch │ ──────────────► │ AWS Lambda │ │
│ │ EventBridge │ (Scheduled) │ (Python 3.9) │ │
│ │ (Cron Rule) │ │ │ │
│ └─────────────────┘ └────────┬─────────┘ │
│ │ │
│ ┌────────────────────────────┤ │
│ │ │ │
│ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────────┐ │
│ │ AWS SNS │ │ EC2 / EBS │ │
│ │ (Alert + │ │ Volumes & │ │
│ │ Approval) │ │ Snapshots │ │
│ └──────────────┘ └──────────────────┘ │
│ │
│ ┌─────────────────┐ ┌──────────────────────────────┐ │
│ │ CloudWatch Logs │ │ IAM Role (Least Privilege) │ │
│ │ (Audit Trail) │ │ + AWS Config (Compliance) │ │
│ └─────────────────┘ └──────────────────────────────┘ │
│ │
│ [All infrastructure provisioned via Terraform] │
└──────────────────────────────────────────────────────────────┘
| Feature | Description |
|---|---|
| 🔍 Auto-Detection | Scans all regions for unattached EBS volumes and orphaned snapshots |
| ⏰ Scheduled Execution | CloudWatch EventBridge cron triggers Lambda at regular intervals |
| 📧 SNS Pre-Deletion Alerts | Notifies team before deletion — supports manual approval gate |
| 🔐 Least Privilege IAM | Lambda has only the minimum permissions needed |
| 📋 Audit Logging | CloudWatch Logs records every deleted resource for compliance |
| 🏗️ Terraform IaC | 100% infrastructure-as-code — no manual AWS console setup |
| 💰 Cost Savings | Achieved 30% reduction in monthly AWS storage costs |
aws-cost-optimization/
├── terraform/
│ ├── main.tf # Core AWS resource definitions
│ ├── lambda.tf # Lambda function + trigger config
│ ├── iam.tf # IAM role with least-privilege policy
│ ├── cloudwatch.tf # EventBridge cron rule + Log Group
│ ├── sns.tf # SNS topic + subscription
│ ├── variables.tf # Input variables
│ └── outputs.tf # Output values
├── lambda/
│ ├── handler.py # Main Lambda function (Python)
│ └── requirements.txt # Python dependencies
├── docs/
│ └── architecture.png # Architecture diagram
└── README.md
CloudWatch EventBridge fires a cron event at a defined interval (e.g., daily at 2 AM UTC).
The Python Lambda function uses boto3 to:
available (not attached to any EC2)Before any deletion, an SNS alert is sent to the configured email/Slack with:
After the approval window, resources are deleted. Every action is logged to CloudWatch with:
aws configure)# Clone the repository
git clone https://github.com/YOUR_USERNAME/aws-cost-optimization.git
cd aws-cost-optimization/terraform
# Initialize Terraform
terraform init
# Preview changes
terraform plan
# Deploy infrastructure
terraform apply
| Variable | Description |
|---|---|
SNS_TOPIC_ARN | ARN of the SNS topic for alerts |
DRY_RUN | Set true to scan without deleting (safe mode) |
APPROVAL_WINDOW_HOURS | Hours to wait before deletion after alert |
REGIONS | Comma-separated AWS regions to scan |
* permissions in IAM policy| Metric | Before | After |
|---|---|---|
| Monthly EBS storage cost | Baseline | -30% reduction |
| Manual cleanup effort | Weekly manual review | Zero manual work |
| Compliance audit readiness | Manual log checks | Automated audit trail |
| Alert response time | N/A | < 5 minutes via SNS |
Nishanth Kumar J — DevOps Engineer
📧 nishanthk211969@gmail.com
🔗 LinkedIn
Selected from shared topics, language and repository description—not editorial ratings.
tharunkumaran11 /
Serverless AWS FinOps platform for automated cloud cost monitoring and optimization using AWS Lambda, EventBridge Scheduler, SNS, CloudWatch, and Cost Explorer.
59/100 healthmboumhawahaga-ship-it /
Automatically scan SageMaker resources, detect idle notebooks & endpoints, and receive weekly cost optimization reports .
69/100 healthmboumhawahaga-ship-it /
Automates AWS tagging governance to improve cost visibility, enforce ownership metadata, and reduce untracked resource usage through progressive remediation, alerting, and audit logging.
47/100 health