Skip to main content

AWS Cost Lens

A tool for analyzing and visualizing AWS costs by service and usage type with rich formatting.

Installation

pip install aws-cost-lens

Usage

After installation, you can run the tool using the aws-cost-lens command:

# Show simple cost breakdown for all services
aws-cost-lens

# Show detailed breakdown for a specific service
aws-cost-lens --service cloudwatch --detailed

# Show costs for a specific date range
aws-cost-lens --start-date 2023-01-01 --end-date 2023-12-31

# List all available AWS services
aws-cost-lens --list-services

# Show top 10 most expensive services
aws-cost-lens --top 10

Common Options

  • --service: Filter by specific AWS service (e.g., cloudwatch, s3, ec2)
  • --start-date: Start date (YYYY-MM-DD), defaults to 6 months ago
  • --end-date: End date (YYYY-MM-DD), defaults to today
  • --detailed: Show detailed breakdown by SERVICE and USAGE_TYPE
  • --region: Include region breakdown in detailed analysis
  • --top N: Show only top N services/usage types
  • --granularity: Time granularity (DAILY, MONTHLY, HOURLY)
  • --show-all: Show all items including those with zero costs
  • --version: Show version information

AWS Credentials

AWS Cost Lens uses your AWS credentials from the environment. Make sure you have:

  1. AWS CLI configured (aws configure)
  2. Or environment variables set (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, etc.)
  3. Appropriate IAM permissions for Cost Explorer API (ce:GetCostAndUsage)

Features

  • Rich terminal UI with formatted tables and progress bars
  • Detailed cost breakdown by service, usage type, and region
  • Identify top cost contributors in your AWS account
  • Get cost reduction tips for specific services
  • Filter by service name with smart alias matching
  • Customizable view options (simple/detailed, time range, etc.)

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_lens-0.1.1.tar.gz (17.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_lens-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file aws_cost_lens-0.1.1.tar.gz.

File metadata

  • Download URL: aws_cost_lens-0.1.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.1

File hashes

Hashes for aws_cost_lens-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42f00dfb723a7ee495c7d8f710e48492cd910a951abb38cb3b554c3f3bcc1f01
MD5 4cfbfc9a7bd9eb2a8514a9670fee67b1
BLAKE2b-256 9ec7e6e247fef04955c35529d1d4603f5fc1bedec0f1406aa03efa13bb240f7f

See more details on using hashes here.

File details

Details for the file aws_cost_lens-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cost_lens-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0b197c31cf49bcc8fe1fb8fce7b1e1446251a8ada571f7182ce63abd5b8a93
MD5 f4f4db53fa2e09bb5b0255ac39f2600e
BLAKE2b-256 145b61102b29742284d63daf8dd0b4926dc67fa4e80859e568bb0bfb135c1f2d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page