Skip to main content

Share a Bucket and Its Objects

Configure a bucket policy via the AWS SDK or console to allow public read access to the bucket and its objects.

Bucket Policy Example

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::Bucket-Name/*"
}
]
}

Replace Bucket-Name with your actual bucket name.

oss_bucket_policy_02