I have an s3 bucket with the policy
{
"Version": "2008-10-17",
"Id": "Policy1412967758094",
"Statement": [
{
"Sid": "Stmt1412967757168",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::bucketname/*"
}
]
}
a cors configuration of
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration>
and full permissions for Me and Authenticated Users.
I have used these permissions before (usually just getObject on the policy) to set up buckets for serving a web sites static assets. When I upload files to these buckets through the GUI, everything works fine and I can view the images by right clicking open.
However, using s3cmd and my secret key and access key with s3cmd sync, no permissions are attached to the files inside the bucket. I can not view them or open them.
What am I missing?