Skip to content

(short issue description)Support Virtual Host Style Naming for custom S3 Endpoints #6011

Closed
@vardhanv

Description

@vardhanv

Describe the feature

Currently, in the S3 AWS SDK, there are only two ways to provide an S3 endpoint.

  1. Default (amazonaws.com)
  2. 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

Metadata

Metadata

Assignees

Labels

closed-for-stalenessfeature-requestA feature should be added or improved.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions