turbot/aws_insights

Query: rds_db_instance_age_table

Usage

powerpipe query aws_insights.query.rds_db_instance_age_table

SQL

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

Dashboards

The query is used in the dashboards: