Skip to content

Commit fc401ab

Browse files
SNAPSHOTS: Use Path Style Access in S3
* Use path style access pattern to fix #31608 * closes #31608
1 parent 91434f7 commit fc401ab

File tree

1 file changed

+2
-1
lines changed
  • plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3

1 file changed

+2
-1
lines changed

plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Service.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ AmazonS3 buildClient(final S3ClientSettings clientSettings) {
112112
//
113113
// We do this because directly constructing the client is deprecated (was already deprecated in 1.1.223 too)
114114
// so this change removes that usage of a deprecated API.
115-
builder.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(endpoint, null));
115+
builder.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(endpoint, null))
116+
.withPathStyleAccessEnabled(true);
116117

117118
return builder.build();
118119
}

0 commit comments

Comments
 (0)