turbot/steampipe-mod-terraform-oci-compliance

Control: Object Storage bucket object events should be enabled

Description

This control checks whether the Object Storage bucket object events are enabled. Object events are used to track object state changes.

Usage

Run the control in your terminal:

powerpipe control run terraform_oci_compliance.control.objectstorage_bucket_object_events_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_oci_compliance.control.objectstorage_bucket_object_events_enabled --share

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std ->> 'object_events_enabled')::bool then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'object_events_enabled')::bool then ' object events enabled'
else ' object events disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'oci_objectstorage_bucket';

Tags