turbot/aws_insights

Query: ebs_snapshot_age_table

Usage

powerpipe query aws_insights.query.ebs_snapshot_age_table

SQL

select
s.snapshot_id as "Snapshot ID",
s.tags ->> 'Name' as "Name",
now()::date - s.start_time::date as "Age in Days",
s.start_time as "Create Time",
s.state as "State",
a.title as "Account",
s.account_id as "Account ID",
s.region as "Region",
s.arn as "ARN"
from
aws_ebs_snapshot as s,
aws_account as a
where
s.account_id = a.account_id
order by
s.start_time,
s.snapshot_id;

Dashboards

The query is used in the dashboards: