I want to outsource audio snippets off my shop page to amazon S3. My goal is: public/everyone can read but only the owner/me can write.
Here is the code I used
Under Permission - Bucket Policy I'm using the following code
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::mybucket/*"
}
]
}
But the permissions I get are confusing me. see screenshot.
And when I click on the relevant file I get this
Do I have to click on "everyone" and add "read"?
Here is another window where I had to change the policy to false (on the right side) because otherwise I was getting "Access denied"
And then there is a third permission window (kind of global? outside the bucket thing)
I guess what I'm asking is: Is this how you do it, if you want to set up files to "read only" for public and "read and write" for the owner? Can someone confirm that this is set up and looking right?
Help is very much appreciated. Thanks.