Skip to content

Shrinidhi3012/aws-cost-optimizer

Repository files navigation

💰 AWS Cost Optimizer

An intelligent AWS cost optimization tool that automatically identifies idle resources, tracks spending, and provides AI-powered recommendations to reduce cloud costs.

AWS Python Docker Terraform

Dashboard Overview


🎯 Problem Statement

Organizations waste 30-40% of their AWS spend on idle or underutilized resources. Manual auditing is time-consuming and often misses optimization opportunities.

AWS Cost Optimizer solves this by:

  • 🔍 Automatically scanning EC2, EBS, RDS, S3, and Lambda resources
  • 📊 Tracking costs in real-time using AWS Cost Explorer
  • 🤖 Providing AI-powered insights for optimization recommendations
  • Scheduling automated scans every 6 hours
  • 💾 Storing historical data for trend analysis

🏗️ Architecture

System Architecture


✨ Key Features

🔍 Multi-Resource Scanning

  • EC2 Instances: Detects idle instances with <5% CPU utilization
  • EBS Volumes: Identifies unattached volumes wasting storage costs
  • RDS Databases: Finds stopped or idle database instances
  • S3 Buckets: Analyzes storage costs and lifecycle policies
  • Lambda Functions: Identifies over-provisioned or unused functions
  • Compliance: Flags untagged resources for governance

Advanced Resource Findings

📊 Cost Analytics

  • Real-time AWS spending breakdown by service
  • Historical cost trends and projections
  • Potential monthly savings calculations
  • Detailed cost attribution per resource

Instance Details

🤖 AI-Powered Insights

  • Natural language queries: "What are my idle resources?"
  • Intelligent recommendations using Ollama (Mistral-7B)
  • Context-aware optimization suggestions
  • Interactive chat interface

AI Cost Assistant

🚀 Automation

  • EventBridge scheduled scans (every 6 hours)
  • Automated cost analysis (daily)
  • DynamoDB storage for historical tracking
  • Email notifications (optional)

📈 Interactive Dashboard

  • Real-time metrics and visualizations
  • Filterable resource tables
  • Cost trend charts
  • AI chat interface
  • Export capabilities

Detailed Findings Table


🛠️ Tech Stack

AWS Services

  • Lambda: Serverless compute for scanners
  • DynamoDB: NoSQL database for scan results
  • EventBridge: Scheduled automation
  • Cost Explorer: Cost tracking API
  • IAM: Security and permissions
  • CloudWatch: Logging and monitoring

Application Stack

  • Python 3.13: Core application language
  • Boto3: AWS SDK for Python
  • Streamlit: Interactive web dashboard
  • Docker: Containerization
  • Ollama (Mistral-7B): AI-powered insights
  • Terraform: Infrastructure as Code

DevOps

  • Git/GitHub: Version control
  • Docker Compose: Container orchestration
  • Terraform: Infrastructure provisioning

👤 Author

Shrinidhi Kulkarni


Built with ❤️ for AWS cost optimization

⭐ If you find this project useful, please star the repository!

About

AI-powered AWS Cost Optimizer that uses Python, Boto3, and Ollama local AI (Mistral-7B) to identify idle resources, analyze spending, and deliver real-time cost-saving insights via a Streamlit dashboard and AWS Cost Explorer APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors