turbot/terraform_oci_compliance

Query: blockstorage_block_volume_backup_enabled

Usage

powerpipe query terraform_oci_compliance.query.blockstorage_block_volume_backup_enabled

Steampipe Tables

SQL

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_line
from
terraform_resource
where
type = 'oci_core_volume';

Controls

The query is being used by the following controls: