Skip to content

Commit

Permalink
AWS client: Don't set region when endpoint configured
Browse files Browse the repository at this point in the history
  • Loading branch information
dgault committed Apr 4, 2024
1 parent d9c0bb6 commit 141f8be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/loci/formats/S3FileSystemStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ private void setupClient() {
client = AmazonS3ClientBuilder.standard()
.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(endpoint, "auto"))
.withPathStyleAccessEnabled(true)
.withRegion(Regions.DEFAULT_REGION) // Ignored but required by the client
.withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials())).build();
} catch (Exception e) {
LOGGER.info("Exception caught while constructing S3 client");
Expand Down

0 comments on commit 141f8be

Please sign in to comment.