turbot/aws_compliance

Query: s3_bucket_static_website_hosting_disabled

Usage

powerpipe query aws_compliance.query.s3_bucket_static_website_hosting_disabled

Steampipe Tables

SQL

select
arn as resource,
case
when website_configuration -> 'IndexDocument' ->> 'Suffix' is not null then 'alarm'
else 'ok'
end status,
case
when website_configuration -> 'IndexDocument' ->> 'Suffix' is not null then name || ' static website hosting enabled.'
else name || ' static website hosting disabled.'
end reason
, region, account_id
from
aws_s3_bucket;

Controls

The query is being used by the following controls: