Skip to content

Commit 5734b40

Browse files
committed
Adding sa-east-1 region.
1 parent 4ce0180 commit 5734b40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ public synchronized AmazonEC2 client() {
120120
endpoint = "ec2.ap-northeast-1.amazonaws.com";
121121
} else if (region.equals("eu-west") || region.equals("eu-west-1")) {
122122
endpoint = "ec2.eu-west-1.amazonaws.com";
123+
} else if (region.equals("sa-east") || region.equals("sa-east-1")) {
124+
endpoint = "ec2.sa-east-1.amazonaws.com";
123125
} else {
124126
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
125127
}

0 commit comments

Comments
 (0)