Skip to content
Cloud Governance Tools

Deny changes to S3 Block Public Access at bucket level

Deny changes to S3 Block Public Access at bucket level is an AWS guardrail written in resource control policies. Denies s3:PutBucketPublicAccessBlock on buckets in the affected accounts so bucket-level Block Public Access settings cannot be modified. Copied from a licensed open source set and read on 10 Nov 2026.

More public exposure guardrails ยท About Resource control policies

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:PutBucketPublicAccessBlock",
      "Resource": "*"
    }
  ]
}
Blocks
Denies s3:PutBucketPublicAccessBlock on buckets in the affected accounts so bucket-level Block Public Access settings cannot be modified.
Breaks
No principal, including bucket owners, can change bucket-level Block Public Access settings; the README says S3 policies are recommended over an RCP for this control. (source)
Test before applying
As for every Resource control policies guardrail: how to test before enforcing
Mechanism
Resource control policies (RCPs): Resources of supported services in member accounts, for any principal calling them; not resources in the management account and not service-linked roles.
Taken from
open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE

What the policy text names

It names 1 action or pattern: s3:PutBucketPublicAccessBlock.

What the source says

s3:PutBucketPublicAccessBlock (read 10 Nov 2026).

On what it breaks: "S3 policies is recommended."

Sources

  1. Deny changes to S3 Block Public Access at bucket level, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.