turbot/oci_compliance

Query: objectstorage_bucket_versioning_enabled

Usage

powerpipe query oci_compliance.query.objectstorage_bucket_versioning_enabled

SQL

select
a.id as resource,
case
when versioning = 'Disabled' then 'alarm'
else 'ok'
end as status,
case
when versioning = 'Disabled' then a.title || ' versioning disabled.'
else a.title || ' versioning enabled.'
end as reason
, a.region as region, a.tenant_name as tenant
, coalesce(c.name, 'root') as compartment
from
oci_objectstorage_bucket as a
left join oci_identity_compartment as c on c.id = a.compartment_id;

Controls

The query is being used by the following controls: