View a markdown version of this page

s3-bucket-blacklisted-actions-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-blacklisted-actions-prohibited

Checks if an Amazon Simple Storage Service (Amazon S3) bucket policy does not allow blocklisted bucket-level and object-level actions on resources in the bucket for principals from other Amazon accounts. For example, the rule checks that the Amazon S3 bucket policy does not allow another Amazon account to perform any s3:GetBucket* actions and s3:DeleteObject on any object in the bucket. The rule is NON_COMPLIANT if any blocklisted actions are allowed by the Amazon S3 bucket policy.

Note

The rule will only check for entities in the Principal property and does not take into account any conditionals under the Condition property in a policy

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_BLACKLISTED_ACTIONS_PROHIBITED

Resource Types: AWS::S3::Bucket

Trigger type: Configuration changes

Amazon Web Services Region: All supported Amazon regions

Parameters:

blacklistedActionPattern
Type: CSV

Comma-separated list of blacklisted action patterns, for example, s3:GetBucket* and s3:DeleteObject.

Amazon CloudFormation template

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