turbot/tailpipe-mod-aws-cost-usage-report-insights

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 dashboards
cd dashboards
powerpipe mod init
powerpipe 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 login
powerpipe 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_report
where
('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"
}

Tags