turbot/alicloud_compliance

Query: oss_bucket_logging_enabled

Usage

powerpipe query alicloud_compliance.query.oss_bucket_logging_enabled

Steampipe Tables

SQL

select
'acs:oss:::' || name as resource,
case
when logging ->> 'TargetBucket' <> '' then 'ok'
else 'alarm'
end as status,
case
when logging ->> 'TargetBucket' <> '' then title || ' logging enabled.'
else title || ' logging disabled.'
end as reason
, account_id as account_id, region as region
from
alicloud_oss_bucket;

Controls

The query is being used by the following controls: