View a markdown version of this page

s3-bucket-public-write-prohibited - Amazon Config
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

s3-bucket-public-write-prohibited

Checks if your Amazon S3 buckets do not allow public write access. The rule checks the Block Public Access settings, the bucket policy, and the bucket access control list (ACL).

The rule is compliant when both of the following are true:

  • The Block Public Access setting restricts public policies or the bucket policy does not allow public write access.

  • The Block Public Access setting restricts public ACLs or the bucket ACL does not allow public write access.

The rule is noncompliant when:

  • If the Block Public Access setting does not restrict public policies, Amazon Config evaluates whether the policy allows public write access. If the policy allows public write access, the rule is noncompliant.

  • If the Block Public Access setting does not restrict public bucket ACLs, Amazon Config evaluates whether the bucket ACL allows public write access. If the bucket ACL allows public write access, the rule is noncompliant.

Note

This rule does not evaluate changes to account level public block access. To check if the required public access block settings are configured from the account level, see s3-account-level-public-access-blocks and s3-account-level-public-access-blocks-periodic.

Note

To be considered non-public, an S3 bucket policy must grant access only to fixed values. This means a policy is NON_COMPLIANT if it grants access to a wildcard or the following IAM policy element: Variables. A fixed value containing a wildcard can still be COMPLIANT.

Note

If a single value in an S3 bucket policy (for example, one Resource or Condition value) contains more than five IAM policy variables, the rule can't evaluate that policy and returns NON_COMPLIANT, even if the policy would otherwise be compliant. To get an accurate evaluation, split any value that contains more than five policy variables so that each value contains five or fewer.

Identifier: S3_BUCKET_PUBLIC_WRITE_PROHIBITED

Resource Types: AWS::S3::Bucket

Trigger type: Configuration changes and Periodic

Amazon Web Services Region: All supported Amazon regions

Parameters:

None

Amazon CloudFormation template

To create Amazon Config managed rules with Amazon CloudFormation templates, see Creating Amazon Config Managed Rules With Amazon CloudFormation Templates.