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:
- AWS CLI configured (
aws configure) - Or environment variables set (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, etc.) - 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.3.tar.gz
(21.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_cost_lens-0.1.3.tar.gz.
File metadata
- Download URL: aws_cost_lens-0.1.3.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9b6dd024b85fb584f5c07452edc3de7a6a40305a60a27404c2a336d54c376a
|
|
| MD5 |
4be082581162ea4a0f149c8cf6e23298
|
|
| BLAKE2b-256 |
66d241b6b338631fd3d52ba620ac0e7078e9c25cd886c1ec7657db9472edcd01
|
File details
Details for the file aws_cost_lens-0.1.3-py3-none-any.whl.
File metadata
- Download URL: aws_cost_lens-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29b4d5e9c19d1c6a6ac56b8153f85eb9f329f78b02632af5b9217986f2e901d9
|
|
| MD5 |
401b81e3b178ab8a7f8dcf39115670ab
|
|
| BLAKE2b-256 |
58762cf7e972c04112f423c2ad880b9e87c6d6a4417c005d2e5261e70fe4c774
|