turbot/aws_insights

Query: ebs_volume_age_table

Usage

powerpipe query aws_insights.query.ebs_volume_age_table

SQL

select
v.volume_id as "Volume ID",
v.tags ->> 'Name' as "Name",
now()::date - v.create_time::date as "Age in Days",
v.create_time as "Create Time",
v.state as "State",
a.title as "Account",
v.account_id as "Account ID",
v.region as "Region",
v.arn as "ARN"
from
aws_ebs_volume as v,
aws_account as a
where
v.account_id = a.account_id
order by
v.create_time,
v.volume_id;

Dashboards

The query is used in the dashboards: