Skip to content

Commit

Permalink
Support AWS cn-northwest-1 Ningxia (fixes #3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwerey committed Jan 26, 2018
1 parent 11c07d2 commit faba5c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ func (c *AWSClient) IsChinaCloud() bool {
if c.region == "cn-north-1" {
return true
}
if c.region == "cn-northwest-1" {
return true
}
return false
}

Expand Down Expand Up @@ -503,6 +506,7 @@ func (c *Config) ValidateRegion() error {
"ap-southeast-2",
"ca-central-1",
"cn-north-1",
"cn-northwest-1",
"eu-central-1",
"eu-west-1",
"eu-west-2",
Expand Down

0 comments on commit faba5c7

Please sign in to comment.