aws-ce
Analyze cloud cost and usage data.
TLDR
Get cost and usage data for the last month grouped by service
SYNOPSIS
aws ce command [options]
DESCRIPTION
aws ce is the AWS CLI interface for AWS Cost Explorer, enabling programmatic access to cost and usage data. It allows querying aggregated data like total monthly costs or granular metrics such as daily operations for specific services.
Cost Explorer provides insights into spending patterns, forecasting, anomaly detection, and recommendations for reserved instances and savings plans. All requests go through the us-east-1 regional endpoint.
COMMANDS
get-cost-and-usage
Retrieve cost and usage metrics with filtering and groupingget-cost-forecast
Generate cost predictions based on historical dataget-anomalies
List detected spending anomaliesget-reservation-utilization
Check reserved instance utilization ratesget-savings-plans-coverage
Analyze savings plans coverage across servicesget-rightsizing-recommendation
Get EC2 instance rightsizing suggestionscreate-anomaly-monitor
Set up automatic anomaly detection monitoringcreate-cost-category-definition
Define custom cost categorization rules
CAVEATS
Cost Explorer API has usage charges beyond the free tier. Data is typically delayed by 24-48 hours. Historical data is available for the last 13 months only. The us-east-1 endpoint must be used regardless of where resources are deployed.
HISTORY
AWS Cost Explorer launched in 2017 as a visualization tool in the AWS Console. The Cost Explorer API was introduced in 2018 to enable programmatic access. Anomaly detection was added in 2020, and commitment purchase analysis features expanded through 2023-2024.
SEE ALSO
aws(1), aws-budgets(1), aws-pricing(1)
