turbot/aws_insights

Query: s3_bucket_public_block_count

Usage

powerpipe query aws_insights.query.s3_bucket_public_block_count

Steampipe Tables

SQL

select
count(*) as value,
'Public Access Not Blocked' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
aws_s3_bucket
where
not block_public_acls
or not block_public_policy
or not ignore_public_acls
or not restrict_public_buckets;

Dashboards

The query is used in the dashboards: