commit
a75d4246e3
|
@ -120,6 +120,8 @@ public class AwsEc2Service extends AbstractLifecycleComponent<AwsEc2Service> {
|
|||
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 class AwsS3Service extends AbstractLifecycleComponent<AwsS3Service> {
|
|||
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 + "]");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue