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 + "]"); } 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 + "]"); }