turbot/aws_insights

Query: ec2_instance_cost_per_month

Usage

powerpipe query aws_insights.query.ec2_instance_cost_per_month

SQL

select
to_char(period_start, 'Mon-YY') as "Month",
sum(unblended_cost_amount)::numeric as "Unblended Cost"
from
aws_cost_by_service_usage_type_monthly
where
service = 'Amazon Elastic Compute Cloud - Compute'
group by
period_start
order by
period_start

Dashboards

The query is used in the dashboards: