Control: S3 bucket should ignore public ACLs
Description
Manage access to resources in the AWS Cloud by ensuring that Amazon Simple Storage Service (Amazon S3) buckets should ignore public ACLs.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.s3_bucket_ignore_public_acls_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.s3_bucket_ignore_public_acls_enabled --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'ignore_public_acls')::boolean then 'ok' else 'alarm' end as status, split_part(address, '.', 2) || case when (attributes_std -> 'ignore_public_acls') is null then ' ignore_public_acls not defined' when (attributes_std ->> 'ignore_public_acls')::boolean then ' ignore_public_acls enabled' else ' ignore_public_acls disabled' end || '.' as reason , path || ':' || start_linefrom terraform_resourcewhere type = 'aws_s3_bucket_public_access_block';