turbot/aws_insights

Query: s3_bucket_logging_enabled

Usage

powerpipe query aws_insights.query.s3_bucket_logging_enabled

Steampipe Tables

SQL

select
'Logging' as label,
case when (logging -> 'TargetBucket') is not null then 'Enabled' else 'Disabled' end as value,
case when (logging -> 'TargetBucket') is not null then 'ok' else 'alert' end as type
from
aws_s3_bucket
where
arn = $1;

Dashboards

The query is used in the dashboards: