turbot/alicloud_compliance
GitHub

Query: oss_bucket_logging_enabled

Usage

steampipe query alicloud_compliance.query.oss_bucket_logging_enabled

Plugins & 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: