turbot/aws_compliance

Query: s3_bucket_logging_enabled

Usage

powerpipe query aws_compliance.query.s3_bucket_logging_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when logging -> 'TargetBucket' is null then 'alarm'
else 'ok'
end as status,
case
when logging -> 'TargetBucket' is null then title || ' logging disabled.'
else title || ' logging enabled.'
end as reason,
region,
account_id
from
aws_s3_bucket;

Controls

The query is being used by the following controls: