-
Notifications
You must be signed in to change notification settings - Fork 38
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
FIles uploading but getting an AccessDenied: Access Denied #24
Comments
Do you know what the permissions are of the User the credentials correspond to? It could potentially be that you don't have access to s3 with those credentials. |
Thanks for the speedy reply @nick-benoit14! I'm not sure it is an S3 credentials issue. I've been using these credentials successfully with the But I'd be happy to try some tests if you can think of anything that might help... |
@bravokiloecho I hate to ask you to dig into the code, but I am not sure how to reproduce this locally. So I will just tell you where I would look first, and then maybe over the weekend I will have more luck reproducing this. On line 497 in
I will keep thinking about it, but this is where I would start. Let me know if you find anything useful! |
I think the s3diff returns fine (no error reported there). I don't think line 184 ever gets called. Before that, this is the error the AWS returns:
You can see the Hope that helps! |
For what it's worth -- I just experienced the same issue, did some debugging, couldn't find anything wrong with code. Turns out that I had the bucket permission set to allow public read AND write, which is why files were successfully being uploaded, "Access Denied" error message notwithstanding. I fixed by ensuring that a) the IAM user whose credentials are being used had a AmazonS3FullAccess permission set, and b) the s3 bucket did not allow for public writing. Hope this helps, even though it's months later and may not be related to this specific issue :) |
AmazonS3FullAccess permission worked for me as well. |
Check the name of your bucket. I had an issue where I was passing the create function from the CLI using the --use-s3-bucket flag and passed the wrong name of the bucket. Changing it to the right one fixed it for me. |
same here
and the winner is number 3 😄 so s3-website is relying on @nick-benoit14 what do you think |
LOL I can't believe this answer save me from a hard headache :)) |
also try to check ACL permission too. |
I'm using this module in API mode. All the files get uploaded but an error is thrown and the
DONE
console log doesn't get called.Here's my code:
And here's the error:
Do you know what might be going on here? Many thanks!
The text was updated successfully, but these errors were encountered: