turbot/alicloud_insights

Query: rds_instance_age_table

Usage

powerpipe query alicloud_insights.query.rds_instance_age_table

SQL

select
i.db_instance_id as "DB Instance ID",
now()::date - i.creation_time::date as "Age in Days",
i.creation_time as "Create Time",
i.db_instance_status as "Status",
a.title as "Account",
i.account_id as "Account ID",
i.region as "Region",
i.arn as "ARN"
from
alicloud_rds_instance as i,
alicloud_account as a
where
i.account_id = a.account_id
order by
i.creation_time,
i.db_instance_id;

Dashboards

The query is used in the dashboards: