From 5734b408ed9343c75b3cdef39bde3550b55270fd Mon Sep 17 00:00:00 2001 From: Leslie Wittig Quintanilla Date: Wed, 3 Apr 2013 14:31:10 -0300 Subject: [PATCH 1/2] Adding sa-east-1 region. --- src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java b/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java index a584445df64..82eb2e7d551 100644 --- a/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java +++ b/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java @@ -120,6 +120,8 @@ public class AwsEc2Service extends AbstractLifecycleComponent { 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 + "]"); } From 36e29cec7aaf4e2ddf9d1bb56abd36300e97b4b8 Mon Sep 17 00:00:00 2001 From: Leslie Wittig Quintanilla Date: Wed, 3 Apr 2013 14:45:32 -0300 Subject: [PATCH 2/2] Adding sa-east-1 region. --- src/main/java/org/elasticsearch/cloud/aws/AwsS3Service.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/elasticsearch/cloud/aws/AwsS3Service.java b/src/main/java/org/elasticsearch/cloud/aws/AwsS3Service.java index 7d2380f7654..3ac6d06c490 100644 --- a/src/main/java/org/elasticsearch/cloud/aws/AwsS3Service.java +++ b/src/main/java/org/elasticsearch/cloud/aws/AwsS3Service.java @@ -121,6 +121,10 @@ public class AwsS3Service extends AbstractLifecycleComponent { 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 + "]"); }