turbot/gcp_insights

Query: kms_keys_for_sql_database_instance

Usage

powerpipe query gcp_insights.query.kms_keys_for_sql_database_instance

SQL

select
k.self_link
from
gcp_sql_database_instance as i,
gcp_kms_key as k
where
i.self_link = $1
and i.kms_key_name = concat('projects', split_part(k.self_link,'projects',2));