Description
Describe the feature
Currently, in the S3 AWS SDK, there are only two ways to provide an S3 endpoint.
- Default (amazonaws.com)
- Custom endpoint
One of the problems with a (2), is that it does not support regions when the endpoint URL is generated.
For example, when the following configuration is used with Virtual Host Style naming
Endpoint: https://foo.com
Bucket: b1
Region: r1
It will generate S3 requests to b1.foo.com. Is there a way, or can a feature be supported to generate requests to b1.r1.foo.com, just as the SDK does when the endpoint is not specified.
Use Case
Be able to use regions with custom endpoints
Proposed Solution
When the following configuration is used with Virtual Host Style naming
Endpoint: https://foo.com
Bucket: b1
Region: r1
Generate requests to b1.r1.foo.com, just as the SDK does when the default endpoint is used.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
sdk-java-v2
JDK version used
Unknown
Operating System and version
Unknown