Permalink
Browse files

Merge pull request #24 from wikka/sa-east-1

Sa east 1
  • Loading branch information...
kimchy committed Apr 4, 2013
2 parents 4ce0180 + 36e29ce commit a75d4246e3e9d0aa7335d4a794dd22edc5d226fe
@@ -120,6 +120,8 @@ public synchronized AmazonEC2 client() {
endpoint = "ec2.ap-northeast-1.amazonaws.com";
} else if (region.equals("eu-west") || region.equals("eu-west-1")) {
endpoint = "ec2.eu-west-1.amazonaws.com";
} else if (region.equals("sa-east") || region.equals("sa-east-1")) {
endpoint = "ec2.sa-east-1.amazonaws.com";
} else {
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
}
@@ -121,6 +121,10 @@ public synchronized AmazonS3 client() {
endpoint = "s3-eu-west-1.amazonaws.com";
} else if ("eu-west-1".equals(region)) {
endpoint = "s3-eu-west-1.amazonaws.com";
} else if ("sa-east".equals(region)) {
endpoint = "s3-sa-east-1.amazonaws.com";
} else if ("sa-east-1".equals(region)) {
endpoint = "s3-sa-east-1.amazonaws.com";
} else {
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
}

0 comments on commit a75d424

Please sign in to comment.