Skip to main content

AWS cost optimization recommendations and automation

Project description

AWS Cost Optimizer

Automated AWS cost optimization recommendations based on production experience achieving 60% cost reduction.

Features

  • DynamoDB Analysis: Identify tables that should use provisioned capacity
  • Lambda Analysis: Find functions without reserved concurrency limits
  • S3 Analysis: Detect buckets missing lifecycle policies
  • CloudFront Analysis: Identify distributions with suboptimal cache settings
  • Rich CLI: Beautiful terminal output with actionable recommendations

Installation

pip install aws-cost-optimizer

Quick Start

# Analyze all services
aws-cost-optimizer analyze

# Analyze specific service
aws-cost-optimizer analyze --service dynamodb

# Apply optimization (dry-run first)
aws-cost-optimizer apply dynamodb my-table --dry-run
aws-cost-optimizer apply dynamodb my-table

Example Output

Service: DynamoDB | Resource: my-table | Issue: Using on-demand | Savings: ~40-60% | Action: Switch to provisioned
Service: Lambda | Resource: my-function | Issue: No concurrency limit | Savings: Prevent overruns | Action: Set reserved concurrency
Service: S3 | Resource: my-bucket | Issue: No lifecycle policy | Savings: ~20-30% | Action: Add lifecycle rules

Real-World Results

This tool is based on optimizations that achieved:

  • 60% cost reduction on production serverless application
  • 90% reduction in Lambda invocations via CloudFront caching
  • Predictable costs through provisioned capacity

Requirements

  • Python 3.9+
  • AWS credentials configured
  • IAM permissions for read access to analyzed services

Development

git clone https://github.com/mjfxjas/aws-cost-optimizer
cd aws-cost-optimizer
pip install -e .

License

MIT License - Jonathan Schimpf

Author

Jonathan Schimpf - jon@theatrico.org

AWS Solutions Architect Associate with production experience optimizing cloud costs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_cost_optimizer-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cost_optimizer-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file aws_cost_optimizer-0.1.0.tar.gz.

File metadata

  • Download URL: aws_cost_optimizer-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aws_cost_optimizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d6550a7fe7e48eabbefb9453a3d0703dd474012b1b78bd1b5664c418758b68b
MD5 85e453f50cebe700a160004b03cc58c3
BLAKE2b-256 ccc694e39efd59ed341eb8ba3f0ebf819b611bf75d9509aac598791ca99159ca

See more details on using hashes here.

File details

Details for the file aws_cost_optimizer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cost_optimizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30172102c85293c27cb8593f69b6d2543e15cf5386c7deea75db4199353a04a0
MD5 80acec71ab924c01fed88793ed6b7a51
BLAKE2b-256 94f6315afcbec14ee27d551173ad516d0aa00d472bfe1c456be719b4127c6294

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page