turbot/gcp_insights

Query: replica_sql_database_instances_for_sql_database_instance

Usage

powerpipe query gcp_insights.query.replica_sql_database_instances_for_sql_database_instance

SQL

select
self_link
from
gcp_sql_database_instance
where
master_instance_name is not null
and replace(self_link, name, split_part(master_instance_name, ':', 2)) = $1
and project = split_part($1, '/', 7)