Create two buckets with name as you want *note: you can choose whatever name
Make sure to turn off the "Block all public access" section:
After bucket created, go to permission setting and paste this in the:
Bucket Policy
Change the <your-bucket-name>
section below:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<your-bucket-name>/*"
}
]
}
example: "Resource": "arn:aws:s3:::my-beautiful-bucket-name/*"
CORS
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"x-amz-server-side-encryption",
"x-amz-request-id",
"x-amz-id-2",
"ETag"
]
}
]