Control: Block Storage block volume backup should be enabled
Description
This control checks whether block volume backups are enabled. Block volume backups are used to create point-in-time copies of block volumes that can be used to create new block volumes or overwrite existing block volumes.
Usage
Run the control in your terminal:
powerpipe control run terraform_oci_compliance.control.blockstorage_block_volume_backup_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_oci_compliance.control.blockstorage_block_volume_backup_enabled --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'backup_policy_id') is null then 'alarm' else 'ok' end as status, split_part(address, '.', 2) || case when (attributes_std ->> 'backup_policy_id') is null then ' backup disabled' else ' backup enabled' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'oci_core_volume';