Two last modifications for the new region sa-east-1.

This commit is contained in:
Leslie Wittig Quintanilla 2013-04-04 21:21:30 -03:00 committed by David Pilato
parent 36daeba9f3
commit 485bb96ae6
2 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,7 @@ 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`).
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

View File

@ -80,6 +80,10 @@ public class S3Gateway extends BlobStoreGateway {
region = "EU";
} else if ("eu-west-1".equals(regionSetting.toLowerCase())) {
region = "EU";
} else if ("sa-east".equals(regionSetting.toLowerCase())) {
region = "sa-east-1";
} else if ("sa-east-1".equals(regionSetting.toLowerCase())) {
region = "sa-east-1";
}
}
}