Bucket policy examples
Default policy allow all
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "allow",
"Effect": "Allow",
"Action": "*",
"Resource": "*",
"Principal": {
"AWS": "*"
},
"Condition": {}
}
]
}Grant public read-only access to a bucket
Deny public access to a bucket
Allow access from a specific IP range
Grant access to another S3 user
Allow access to a specific folder
Restrict access to objects within a specific path
Require a minimum TLS version
Prevent deletion of objects
Last updated
Was this helpful?