From fda6243c5e4992d61ef2bdd7d35153a7d1dccb07 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Mon, 28 Sep 2015 07:01:45 -0700 Subject: [PATCH] AWS: Recognize cn-north-1 & us-gov-west-1 regions These two regions were accidentally omitted. This list now matches the list we use elsewhere (e.g. when choosing an AMI). Fixes #14420 --- pkg/cloudprovider/providers/aws/aws.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cloudprovider/providers/aws/aws.go b/pkg/cloudprovider/providers/aws/aws.go index 69c8b99aacc..10fe5580bf5 100644 --- a/pkg/cloudprovider/providers/aws/aws.go +++ b/pkg/cloudprovider/providers/aws/aws.go @@ -513,6 +513,8 @@ func isRegionValid(region string) bool { "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", + "cn-north-1", + "us-gov-west-1", "sa-east-1", } for _, r := range regions {