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

Set region 5.6.4 #41225

wants to merge 2 commits into from


None yet
3 participants
Copy link

LukeEvans commented Apr 15, 2019

Do not merge

SigV4 is currently supported in all AWS regions while SigV2 is only supported in regions launched
prior to Jan 2014. S3 will stop accepting requests signed using SigV2 in all regions on June 24, 2019, any requests signed using SigV2 made after this time will fail.

For any AWS SDK released prior to May 2016, it's possible to force usage of SigV4 via a command line flag

With this flag turned on, however, creation of an S3 repository fails with:

com.amazonaws.AmazonClientException: Signature Version 4 requires knowing the region 
of the bucket you're trying to access. You can configure a region by calling
    AmazonS3Client.setRegion(Region) or AmazonS3Client.setEndpoint(String) 
    with a region-specific endpoint such as "".

It seems necessary to explicitly set the S3 endpoint before repository creation can succeed.

LukeEvans added some commits Apr 15, 2019

Setting endpoint rather than region.
Setting region is deprecated and it also requires elevated permissions to GET an endpoint from a region. It's better to do this with a convention based approach

This comment has been minimized.

Copy link

elasticmachine commented Apr 16, 2019


This comment has been minimized.

Copy link

LukeEvans commented Apr 16, 2019

It turns out this code change isn't necessary as the endpoint can be specified when creating the s3 repository from the REST api.

@LukeEvans LukeEvans closed this Apr 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.