mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 01:19:10 +00:00
parent
3616ed6ddd
commit
4c7e384c96
13
README.md
13
README.md
@ -40,7 +40,18 @@ The plugin will automatically use the instance level security credentials (as of
|
||||
|
||||
### Region
|
||||
|
||||
The `cloud.aws.region` can be set to a region and will automatically use the relevant settings for both `ec2` and `s3`. The available values are: `us-east` (`us-east-1`), `us-west` (`us-west-1`), `us-west-1`, `us-west-2` `ap-southeast` (`ap-southeast-1`), `ap-southeast-1`, `ap-southeast-2`, `ap-northeast` (`ap-northeast-1`) `eu-west` (`eu-west-1`), `sa-east` (`sa-east-1`).
|
||||
The `cloud.aws.region` can be set to a region and will automatically use the relevant settings for both `ec2` and `s3`. The available values are:
|
||||
|
||||
* `us-east` (`us-east-1`)
|
||||
* `us-west` (`us-west-1`)
|
||||
* `us-west-1`
|
||||
* `us-west-2`
|
||||
* `ap-southeast` (`ap-southeast-1`)
|
||||
* `ap-southeast-1`
|
||||
* `ap-southeast-2`
|
||||
* `ap-northeast` (`ap-northeast-1`)
|
||||
* `eu-west` (`eu-west-1`)
|
||||
* `sa-east` (`sa-east-1`).
|
||||
|
||||
|
||||
## EC2 Discovery
|
||||
|
@ -76,6 +76,10 @@ public class S3Gateway extends BlobStoreGateway {
|
||||
region = "ap-southeast-1";
|
||||
} else if ("ap-southeast-2".equals(regionSetting.toLowerCase())) {
|
||||
region = "ap-southeast-2";
|
||||
} else if ("ap-northeast".equals(regionSetting.toLowerCase())) {
|
||||
region = "ap-northeast-1";
|
||||
} else if ("ap-northeast-1".equals(regionSetting.toLowerCase())) {
|
||||
region = "ap-northeast-1";
|
||||
} else if ("eu-west".equals(regionSetting.toLowerCase())) {
|
||||
region = "EU";
|
||||
} else if ("eu-west-1".equals(regionSetting.toLowerCase())) {
|
||||
|
@ -105,6 +105,10 @@ public class S3Repository extends BlobStoreRepository {
|
||||
region = "ap-southeast-1";
|
||||
} else if ("ap-southeast-2".equals(regionSetting)) {
|
||||
region = "ap-southeast-2";
|
||||
} else if ("ap-northeast".equals(regionSetting)) {
|
||||
region = "ap-northeast-1";
|
||||
} else if ("ap-northeast-1".equals(regionSetting)) {
|
||||
region = "ap-northeast-1";
|
||||
} else if ("eu-west".equals(regionSetting)) {
|
||||
region = "EU";
|
||||
} else if ("eu-west-1".equals(regionSetting)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user