From 0285605f6acd30e2ea0ce67d5d609d8cbb43e261 Mon Sep 17 00:00:00 2001 From: Aaron Feng Date: Fri, 20 Jun 2014 22:06:28 -0400 Subject: [PATCH] fill in all regions Docker-DCO-1.1-Signed-off-by: Aaron Feng (github: aaronfeng) --- backends/ec2.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backends/ec2.go b/backends/ec2.go index 6a1ff52ead..45327fa023 100644 --- a/backends/ec2.go +++ b/backends/ec2.go @@ -178,7 +178,6 @@ func newConfig(args []string) (config *ec2Config, err error) { } func convertToRegion(input string) aws.Region { - // TODO (aaron): fill in more regions switch input { case "us-east-1": return aws.USEast @@ -188,6 +187,14 @@ func convertToRegion(input string) aws.Region { return aws.USWest2 case "eu-west-1": return aws.EUWest + case "sa-east-1": + return aws.SAEast + case "ap-northeast-1": + return aws.APNortheast + case "ap-southeast-1": + return aws.APSoutheast + case "ap-southeast-2": + return aws.APSoutheast2 default: fmt.Println("Unrecognizable region, default to: us-east-1") return aws.USEast