From f1fb942219e4815aa5679a039711e5574f97cdfa Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Fri, 9 Dec 2016 11:21:44 -0800 Subject: [PATCH] add ca-central-1 to list of known aws regions. resolves #4273 --- builder/amazon/common/regions.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builder/amazon/common/regions.go b/builder/amazon/common/regions.go index 9fa38ce7d..7353020a8 100644 --- a/builder/amazon/common/regions.go +++ b/builder/amazon/common/regions.go @@ -1,5 +1,6 @@ package common +// aws ec2 describe-regions --query 'Regions[].{Name:RegionName}' --output text | sed 's/\(.*\)/"\1",/' | sort func listEC2Regions() []string { return []string{ "ap-northeast-1", @@ -7,15 +8,17 @@ func listEC2Regions() []string { "ap-south-1", "ap-southeast-1", "ap-southeast-2", - "cn-north-1", + "ca-central-1", "eu-central-1", "eu-west-1", "sa-east-1", "us-east-1", "us-east-2", - "us-gov-west-1", "us-west-1", "us-west-2", + // not part of autogenerated list + "us-gov-west-1", + "cn-north-1", } }