Contribute
Sign in
AWS Cost Explorer

AWS Cost Explorer

Detailed cost analysis and reporting.

10K+pulls7 ToolsPackaged byDocker, with additional security features including SBOMs, provenance, signing, and multi-arch supportRequires Secrets

Tools

NameDescription
get_cost_and_usage_comparisons[DEPRECATED] Compare AWS costs and usage between two time periods. This tool compares cost and usage data between a baseline period and a comparison period, providing percentage changes and absolute differences. Both periods must be exactly one month and start/end on the first day of a month. The tool also provides detailed cost drivers when available, showing what specific factors contributed to cost changes. Important requirements: - Both periods must be exactly one month duration - Dates must start and end on the first day of a month (e.g., 2025-01-01 to 2025-02-01) - Maximum lookback of 13 months (38 months if multi-year data enabled) - Start dates must be equal to or no later than current date Example: Compare January 2025 vs December 2024 EC2 costs await get_cost_and_usage_comparisons( ctx=context, baseline_date_range={ "start_date": "2024-12-01", # December 2024 "end_date": "2025-01-01" }, comparison_date_range={ "start_date": "2025-01-01", # January 2025 "end_date": "2025-02-01" }, metric_for_comparison="UnblendedCost", group_by={"Type": "DIMENSION", "Key": "SERVICE"}, filter_expression={ "Dimensions": { "Key": "SERVICE", "Values": ["Amazon Elastic Compute Cloud - Compute"], "MatchOptions": ["EQUALS"] } } )