Skip to content

Commit a75d424

Browse files
committed
Merge pull request #24 from wikka/sa-east-1
Sa east 1
2 parents 4ce0180 + 36e29ce commit a75d424

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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
}

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)