-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"unknown" error message accessing S3 object #616
Comments
Just wanted to let you know that I deleted the files and re-uploaded them, and then everything worked. Very weird. Since S3 doesn't guarantee 100% consistency of data, maybe I got 'lucky' and had a corrupted one? Anyway, might be worth investigating if it is possible to detect that situation and provide a clearer error message on awscli. |
Turns out that this is related to #663. The bucket was created in AWS account A. The instance doing the upload runs in AWS account B, and uses an IAM role also that also belongs to AWS account B. The bucket has a bucket policy granting s3:* to the aforementioned IAM role. I was getting an error reading this file using credentials from an IAM user from AWS account A. The correct way to ensure all privileges were correct (AFAIK) would be to use the Still, the error message could have been better than "unknown". But knowing the case and being able to replicate it might help. :) |
Should be fixed via boto/botocore#254 |
I have run into a strange problem with using the S3 functionality. To understand what's happening, I have a bucket where allow was granted for
s3:*
for a given user. I have configured that user's credentials in~/.aws/config
as a profile calledprof
.I am able to perform list operations (s3 aws ls), upload files (s3 aws cp), etc. However, I am not able to download files for some reason. I was able to map that to an
The text was updated successfully, but these errors were encountered: