Skip to content

Commit 36e29ce

Browse files
committed
Adding sa-east-1 region.
1 parent 5734b40 commit 36e29ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/elasticsearch/cloud/aws/AwsS3Service.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ public synchronized AmazonS3 client() {
121121
endpoint = "s3-eu-west-1.amazonaws.com";
122122
} else if ("eu-west-1".equals(region)) {
123123
endpoint = "s3-eu-west-1.amazonaws.com";
124+
} else if ("sa-east".equals(region)) {
125+
endpoint = "s3-sa-east-1.amazonaws.com";
126+
} else if ("sa-east-1".equals(region)) {
127+
endpoint = "s3-sa-east-1.amazonaws.com";
124128
} else {
125129
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
126130
}

0 commit comments

Comments
 (0)