The “block public access” settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central definition for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.
Public access policies may be applied to sensitive data buckets
Define a aws_s3_bucket_public_access_block for the given bucket to control public access policies
The following example will fail the aws-s3-specify-public-access-block check.
The following example will pass the aws-s3-specify-public-access-block check.