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

Query: overview_dashboard_daily_cost

Usage

powerpipe query aws_cost_and_usage_insights.query.overview_dashboard_daily_cost

SQL

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);

Params

ArgsNameDefaultDescriptionVariable
$1account_ids

    Dashboards

    The query is used in the dashboards: