turbot/aws_insights

Query: s3_bucket_cost_per_month

Usage

powerpipe query aws_insights.query.s3_bucket_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 Simple Storage Service'
group by
period_start
order by
period_start;

Dashboards

The query is used in the dashboards: