turbot/alicloud_insights

Query: rds_databases_for_rds_instance

Usage

powerpipe query alicloud_insights.query.rds_databases_for_rds_instance

SQL

select
d.db_name as database_name
from
alicloud_rds_instance as i,
alicloud_rds_database as d
where
i.arn = $1
and i.account_id = split_part($1,':',5)
and i.region = split_part($1,':',4)
and d.db_instance_id = i.db_instance_id;