turbot/terraform_gcp_compliance

Query: compute_disk_encrypted_with_csk

Usage

powerpipe query terraform_gcp_compliance.query.compute_disk_encrypted_with_csk

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'disk_encryption_key') is null then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'disk_encryption_key') is null then 'not encrypted with Customer Supplied Key'
else ' encrypted with Customer Supplied Key'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'google_compute_disk';

Controls

The query is being used by the following controls: