turbot/gcp_insights

Query: sql_database_instance_encryption_count

Usage

powerpipe query gcp_insights.query.sql_database_instance_encryption_count

SQL

select
count(*) as value,
'Unencrypted' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
gcp_sql_database_instance
where
kms_key_name = '';

Dashboards

The query is used in the dashboards: