Cost and Usage Report: Cost by AccountCost and Usage Report: Cost by RegionCost and Usage Report: Cost by ServiceCost and Usage Report: Cost by TagCost and Usage Report: Overview
Dashboard: Cost and Usage Report: Overview
This dashboard answers the following questions:
- What is the total cost across all accounts?
- What currency is used for cost calculations?
- How has the cost trended monthly and daily?
- What are the top 10 most expensive accounts, regions, services, and resources?
This dashboard contains 2 cards and 1 input.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/tailpipe-mod-aws-cost-usage-report-insights
Start the Powerpipe server:
powerpipe server
Open http://localhost:9033 in your browser and select Cost and Usage Report: Overview dashboard.
You could also snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe dashboard run aws_cost_and_usage_insights.dashboard.overview_dashboard --share
Queries
This dashboard uses the the following queries:
select --strftime(date_trunc('day', line_item_usage_start_date), '%b %d -%Y') as "Date", strftime(date_trunc('day', line_item_usage_start_date), '%Y-%m-%d') as "Date", round(sum(line_item_unblended_cost), 2) as "Total Cost"from aws_cost_and_usage_reportwhere ('all' in ($1) or line_item_usage_account_id in $1)group by date_trunc('day', line_item_usage_start_date)order by date_trunc('day', line_item_usage_start_date);
{ "$1": "account_ids"}