turbot/aws_insights

Query: rds_db_instance_snapshot_age_table

Usage

powerpipe query aws_insights.query.rds_db_instance_snapshot_age_table

SQL

select
s.db_snapshot_identifier as "DB Snapshot Identifier",
now()::date - s.create_time::date as "Age in Days",
s.create_time as "Create Time",
s.status as "Status",
a.title as "Account",
s.account_id as "Account ID",
s.region as "Region",
s.arn as "ARN"
from
aws_rds_db_snapshot as s,
aws_account as a
where
s.account_id = a.account_id
order by
s.create_time,
s.db_snapshot_identifier;

Dashboards

The query is used in the dashboards: