Skip to content
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

Region Frankfurt: Please use AWS4-HMAC-SHA256 #829

Closed
ataraxus opened this issue Dec 4, 2015 · 4 comments
Closed

Region Frankfurt: Please use AWS4-HMAC-SHA256 #829

ataraxus opened this issue Dec 4, 2015 · 4 comments
Labels
third-party This issue is related to third-party libraries or applications.

Comments

@ataraxus
Copy link

ataraxus commented Dec 4, 2015

Hey using LoopBack which itself uses pkgcloud which in the end uses aws-sdk. If I access my S3 Bucket in Frankfurt I get: "Failed InvalidRequest: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256."
How do I use the aws-sdk with this region?

Here is the related issue on LoopBacks site: strongloop/loopback-component-storage#101

On this lib they somehow fixed it: s3tools/s3cmd#402

@chrisradek
Copy link
Contributor

@ataraxus
I can't comment specifically on what the issue might be with the 3rd party frameworks. However, my best guess based on the error message you're receiving is that they don't handle SigV4 signing.

There are two different signature versions that are supported by S3 in various regions. Some regions only support the newest (v4) signing. There's a list of regions and what signature versions they support here: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

If possible, I'd recommend trying the aws-sdk for interacting with S3. We have API documentation on how to use the SDK to interact with S3 here: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
We also have a Getting Started guide: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-intro.html

Let me know if you have specific questions or issues using the AWS SDK!

@ataraxus
Copy link
Author

ataraxus commented Dec 9, 2015

Hey @chrisradek,

after reading the original documentation I got my error. If you don't specify a region the aws-sdk will use a default region 'us-east-1' which is not compatible with my target region in Frankfurt: 'eu-central-1' after having a look where to set the appropriate region in the loopback sdk i got everything working. Ticket can be closed now.

Thanks again.

@ataraxus ataraxus closed this as completed Dec 9, 2015
@ataraxus
Copy link
Author

ataraxus commented Dec 9, 2015

Just for folks ending up on this page, here is the site to look up your region: https://docs.aws.amazon.com/general/latest/gr/rande.html

@lock
Copy link

lock bot commented Sep 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
third-party This issue is related to third-party libraries or applications.
Projects
None yet
Development

No branches or pull requests

3 participants