Skip to content

Commit

Permalink
Merge pull request #3142 from kwerey/cn-northwest-1-3053
Browse files Browse the repository at this point in the history
Support AWS cn-northwest-1 Ningxia (fixes #3053)
  • Loading branch information
bflad authored Jan 26, 2018
2 parents ec4ff49 + e11c7df commit bf7787d
Show file tree
Hide file tree
Showing 4 changed files with 7 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 @@ -226,6 +226,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 @@ -506,6 +509,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
1 change: 1 addition & 0 deletions aws/data_source_aws_cloudtrail_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var cloudTrailServiceAccountPerRegionMap = map[string]string{
"eu-west-2": "282025262664",
"eu-west-3": "262312530599",
"sa-east-1": "814480443879",
"cn-northwest-1": "681348832753",
}

func dataSourceAwsCloudTrailServiceAccount() *schema.Resource {
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_elb_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var elbAccountIdPerRegionMap = map[string]string{
"ap-southeast-2": "783225319266",
"ca-central-1": "985666609251",
"cn-north-1": "638102146993",
"cn-northwest-1": "037604701340",
"eu-central-1": "054676820928",
"eu-west-1": "156460612806",
"eu-west-2": "652711504416",
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_redshift_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var redshiftServiceAccountPerRegionMap = map[string]string{
"ap-southeast-2": "762762565011",
"ap-northeast-1": "404641285394",
"ca-central-1": "907379612154",
"cn-northwest-1": "660998842044",
"eu-central-1": "053454850223",
"eu-west-1": "210876761215",
"eu-west-2": "307160386991",
Expand Down

0 comments on commit bf7787d

Please sign in to comment.