Control: Block Storage block volume encryption should be enabled
Description
Ensure Block Storage block volumes are encrypted at rest to protect sensitive data.
Usage
Run the control in your terminal:
powerpipe control run terraform_oci_compliance.control.blockstorage_block_volume_encryption_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_oci_compliance.control.blockstorage_block_volume_encryption_enabled --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'kms_key_id') is null then 'alarm' else 'ok' end as status, split_part(address, '.', 2) || case when (attributes_std ->> 'kms_key_id') is null then ' encryption disabled' else ' encryption enabled' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'oci_core_volume';