Skip to main content

Configure S3 Bucket

1

Permissions​

Ensure that your Permissions -> Block Public Access settings look like this with all four options turned off.

2

CORS​

In the Permissions -> Cross-origin resource sharing (CORS) Configuration section, add the following CORS settings and click Save.

**Copy paste these CORS settings to your bucket:** ``` [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "POST", "PUT", "GET", "HEAD", "DELETE" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [ "ETag" ], "MaxAgeSeconds": 30000 } ] ```
3

Ownership​

Navigate to your newly created S3 Bucket, click on Permissions -> Object Ownership, and then click Edit.

4

Final Step​

Select "ACLs enabled" and "Object writer", then click Save Changes.

Ready to build with CodeGuru?

Browse Hirevia, SocialSwap, and more — docs here, products on codeguru.online.