back to home

kosty-cloud / kosty

Identify AWS cost waste and security vulnerabilities across 16 core services with a single command

263 stars
24 forks
2 issues
PythonHTMLShell

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing kosty-cloud/kosty in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/kosty-cloud/kosty)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

šŸ’° Kosty - AWS Cost Optimization & Security Audit CLI Tool > šŸ’” Need expert help optimizing your AWS infrastructure? Professional consulting services available → **šŸš€ Identify AWS cost waste and security vulnerabilities across 16 core services with a single command** *Save thousands of dollars monthly and improve security posture by finding unused resources, oversized instances, misconfigurations, and compliance issues* šŸŽÆ Quick Start • šŸ“– Documentation • šŸ”§ Installation • šŸ’” Examples šŸ“Š Visual Dashboard **Not just CLI!** Kosty includes a beautiful, modern web dashboard to visualize your optimization results: ✨ **Premium Features**: Interactive charts, responsive design, real-time data visualization, and professional reporting. --- 🌟 Built by a Cloud Consultant, for Cloud Engineers After years of AWS consulting , I kept finding the same costly patterns: • Load Balancers with no targets **10K$-30K$/year wasted** • Orphaned EBS volumes: **$1,000-2,500/year** • Unused NAT Gateways, oversized instances, old snapshots,... **Every. Single. Time.** So I built Kosty - the tool I wish existed when I started consulting. What Kosty Does • šŸ” Scans **16 core AWS services** in one command • šŸ’° **Quantifies cost savings** with real dollar amounts (11 services) • šŸ“Š Finds **oversized instances** (EC2, RDS, Lambda) • šŸ” Detects **security vulnerabilities** (public DBs, unencrypted storage, open ports) • šŸ›”ļø Identifies **compliance issues** (old access keys, public snapshots, weak configurations) **One command. Full audit. Real savings. Free forever.** AWS costs and security risks can spiral out of control quickly. Kosty helps you: • šŸ” **Discover** unused resources and security vulnerabilities across 16 core AWS services • šŸ’° **Quantify** cost savings with real dollar amounts ($X/month calculations) • šŸ” **Detect** security misconfigurations and compliance issues • ⚔ **Optimize** with prioritized recommendations by financial impact • šŸ¢ **Scale** across entire AWS Organizations with parallel processing • šŸ“Š Track ROI with detailed cost reporting šŸŽÆ Quick Start šŸ”§ Installation Prerequisites • Python 3.7+ • AWS CLI configured with appropriate credentials Quick Install (Recommended) Install from Source Development Install šŸ’” Examples šŸ† High-Impact Optimizations with Cost Savings šŸ” Resource Discovery & Security Audits šŸ¢ Comprehensive Scanning šŸš€ Command Types Kosty offers **3 types of commands** for maximum flexibility: • šŸŽÆ **Complete Audits** - Full service analysis • šŸ’° **Targeted Audits** - Cost or security focus • šŸ” **Individual Checks** - Specific issue detection • šŸŒ **Multi-Region & Organization** - Comprehensive scanning • šŸ”„ **Multi-Profile Audits** - Run across all profiles in parallel **What happens:** • Reads all profiles from your config file • Runs audits in parallel (default: 3 at a time) • Generates separate reports per profile: • Creates summary report: • Continues on errors (failed profiles don't stop others) • Shows aggregated totals across all profiles --- šŸ’° Cost Quantification Engine šŸ’µ Services with Cost Calculations (11 Services) Kosty provides **real monthly and annual savings estimates** for these services: | Service | Cost Calculation | Example Savings | |---------|------------------|----------------| | **EBS** | Orphaned volumes by size & type | $10.00/month (100GB gp2) | | **EC2** | Stopped instances by type | $280.32/month (m5.2xlarge) | | **EIP** | Unattached Elastic IPs | $3.60/month (fixed rate) | | **NAT Gateway** | Unused gateways | $32.85/month (per gateway) | | **Load Balancer** | ALBs with no targets | $16.43/month (per ALB) | | **S3** | Lifecycle optimization candidates | $2.30/month (100GB) | | **Snapshots** | Old EBS snapshots | $5.00/month (100GB) | | **Backup** | Empty AWS Backup vaults | $0.00/month (no storage) | | **RDS** | Oversized instances ( 512MB) | $0.68/month (optimization) | | **DynamoDB** | Idle tables (low RCU/WCU) | Variable (on-demand savings) | šŸ“ˆ Services with Audit Only (5 Services) These services provide security and compliance audits without cost quantification: • **IAM**: Security policies, unused roles, compliance • **CloudWatch**: Log retention, unused alarms • **Route53**: Unused hosted zones, DNS configuration • **API Gateway**: Unused APIs, security configuration • **Security Groups**: Unused groups, overly permissive rules āš ļø Cost Calculation Disclaimer **Important**: Cost estimates are based on AWS Pricing API and standard on-demand rates. **Actual costs may vary** due to: • šŸ’° **Reserved Instance discounts** (up to 75% off) • šŸ’° **Savings Plans** (up to 72% off) • šŸ’° **Volume discounts** for high usage • šŸŒ **Regional pricing variations** • šŸ¢ **Enterprise agreements** and custom pricing • šŸ“ˆ **Spot instance pricing** (up to 90% off) • šŸ”„ **Free tier limits** and credits **Use estimates for**: Relative comparison between issues, optimization prioritization, business case development, and ROI trend analysis. **Verify actual costs** in your AWS billing dashboard before making decisions. --- šŸ“Š Complete Service Coverage (16 Services) šŸŽÆ Service Overview | Category | Services | Key Checks | |----------|----------|------------| | **šŸ’» Compute** | EC2, Lambda | Oversized instances, unused functions | | **šŸ—„ļø Storage** | S3, EBS, Snapshots | Empty buckets, orphaned volumes, old snapshots | | **šŸ—ƒļø Database** | RDS, DynamoDB | Idle databases, over-provisioned tables | | **🌐 Network** | EIP, LB, NAT, SG, Route53 | Unused resources, no healthy targets | | **šŸ” Security** | IAM | Unused roles, old access keys, inactive users | | **šŸ“Š Management** | CloudWatch, Backup | Unused alarms, expensive logs, empty vaults | | **🌐 Application** | API Gateway | Unused APIs, expensive configurations | šŸ“‹ Service Commands Summary | Service | Total Commands | Audit Types | Individual Checks | |---------|----------------|-------------|-------------------| | **EC2** | 16 | 3 | 13 checks | | **RDS** | 17 | 3 | 14…