I was simply following the "get started" tutorial here
But I failed at "Step 4 Add a Bucket Policy to Allow Public Reads". It always complains "access denied" with a red error icon.
I am not able to set it via command line either. Here is the command I use:
aws s3api put-bucket-policy --bucket bucket-name --policy file://bucket-policy.json
Here is the error I got:
An error occurred (AccessDenied) when calling the PutBucketPolicy operation: Access Denied
[YOUR_BUCKET_NAME]
inarn:aws:s3:::[YOUR_BUCKET_NAME]
with the correct bucket name ? – AppleCiderGuy