Control: S3 bucket policy should prohibit public access
Description
This control checks that the access granted by the S3 bucket is restricted by any of the principals, federated users, service principals, IP addresses, or VPCs that you provide. The rule is compliant if a bucket policy is not present.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.s3_bucket_policy_restrict_public_access
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.s3_bucket_policy_restrict_public_access --share
SQL
This control uses a named query:
s3_bucket_policy_restrict_public_access