AWS S3 Policy Generator

Generate an AWS S3 bucket access policy in JSON, ready to attach directly to your bucket permission settings.

AWS S3 · browser-side

S3 Bucket Policy Generator

Build a scoped JSON bucket-policy draft for common S3 access patterns. Choose an intent, review the exact principal and resource scope, then copy or download the policy.

Configure policy

Inputs stay in this browser; this tool does not connect to AWS.

Policy draft

Review the scope before using it.

Your policy draft will appear here.

Local checks cover input shape and JSON generation only. Validate the final draft with IAM Access Analyzer and test it in the intended account.

S3 bucket policy guide

Bucket and object ARNs differ

s3:ListBucket targets the bucket ARN. Object actions such as s3:GetObject target object ARNs like arn:aws:s3:::bucket/prefix/*.

Public policies are conditional

A wildcard principal can expose matching objects. S3 Block Public Access at the organization, account, or bucket level may reject or block the grant.

A draft is not a permission test

Effective access also depends on identity policies, explicit denies, organization controls, endpoint policies, KMS, and request context. Check in AWS before relying on the result.

Read AWS S3 policy guidance and IAM Access Analyzer policy validation and S3 bucket naming rules.

Frequently asked questions

Does this tool verify that AWS will accept the policy?

No. It checks input formats and creates JSON locally. Use IAM Access Analyzer for AWS-side policy validation, then test access in the target environment.

Why does a cross-account account ID become a root ARN?

An account principal delegates access to that AWS account; it does not limit the grant to its root user. The caller account generally needs an identity-based policy too.

Can I use a public-read policy while Block Public Access is enabled?

The generator cannot inspect your AWS settings. Applicable organization, account, bucket, and access point settings combine restrictively, so public access may be blocked even when the policy contains an allow.

Infinio Tools
© 2026 Infinio Labs