Jhorra
Jhorra

Reputation: 6321

Correct permissions to upload to Amazon S3

I have two buckets, and someone else set up the permission for them. One allows uploads, and the second one isn't. I checked the permissions on both, and neither have a bucket policy or CORS Configuration that I can see. These are the permissions for the one that is allowing uploads enter image description here

I've opened up the permissions even more for the other bucket, but it still doesn't allow uploads. enter image description here

Besides those places is there somewhere else that you would set permissions that I'm missing? The Amazon docs just talk about this and bucket policy, but as I said, the Bucket Policy and CORS configuration for the one that is working is blank. I'm not sure what I need to do here.

Upvotes: 0

Views: 108

Answers (2)

Jhorra
Jhorra

Reputation: 6321

I don't know what the issue was, but the original app was written to use the East Coast data center. When I changed to bucket to that location suddenly it started working again. My only assumption is that someone must have hard coded it somewhere.

Upvotes: 0

Kai Zhao
Kai Zhao

Reputation: 1015

Do you have anything under Identity & Access Management (IAM)? There might be policy preventing you from access bucket

Here is a link explain how IAM policy work: http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_examples.html#iam-policy-example-s3

Upvotes: 1

Related Questions