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.)
Metadata
Release files for aws-cost-lens 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws_cost_lens-0.1.6.tar.gz | 41.9 kB | Without provenance | Details for aws_cost_lens-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_cost_lens-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for aws_cost_lens-0.1.6-py3-none-any.whl |
Total release size: 67.3 kB
Release files / aws_cost_lens-0.1.6.tar.gz
| Download URL | aws_cost_lens-0.1.6.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55da9e612955da1744363ed08c8f0bdbb82c7972295674b86365813c12efd401
|
|
BLAKE2b-256 checksum How to use checksums |
818cf6b8dd67e8518da19a84f30fd2c68b347ea4ef7e3ae3739e4b92af0cbf28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.13
|
Release files / aws_cost_lens-0.1.6-py3-none-any.whl
| Download URL | aws_cost_lens-0.1.6-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdcc3d42df0cefc6fb4d29dac89d3c0adc4d2f8a99377513dd7ce76e4877cb98
|
|
BLAKE2b-256 checksum How to use checksums |
cdc3108a3435769643b28fb6249bc8a16e81d17230b0144f1865ab6a8e75701c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.13
|
Security for aws-cost-lens 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.