> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Put bucket policy

> Learn to apply bucket policies for public access in Telnyx Cloud Storage with detailed JSON and AWS S3 API examples.

# PutBucketPolicy

[PutBucketPolicy - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketPolicy.html)

**Warning:** Only verified users can update bucket policy. To request KYC on your account, go to [Portal Account Verifications](https://portal.telnyx.com/#/app/account/verifications)

## Example PutBucketPolicy request

Create a bucket where the objects stored in there can be read publicly without authentication

Create a JSON file locally, e.g. `public_read_policy.json`

### Prepare a JSON file like this

```json theme={null}
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "PublicReadGetObject",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::<your-bucket-name>/*"
    }
  ]
}
```

### Then apply that to an existing bucket

```bash theme={null}
user@host % aws s3api put-bucket-policy --bucket pubreadbuc --policy file://public_read_policy.json
```
