Skip to content

Commit

Permalink
Merge pull request AdRoll#362 from iyee/master
Browse files Browse the repository at this point in the history
Add AWS CN region
  • Loading branch information
alimoeeny committed Apr 22, 2015
2 parents 6fec787 + 5e0c6ce commit cc210f4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ var Regions = map[string]Region{
USWest2.Name: USWest2,
USGovWest.Name: USGovWest,
SAEast.Name: SAEast,
CNNorth1.Name: CNNorth1,
}

// Designates a signer interface suitable for signing AWS requests, params
Expand Down
24 changes: 24 additions & 0 deletions aws/regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,27 @@ var SAEast = Region{
"https://cloudformation.sa-east-1.amazonaws.com",
"https://elasticache.sa-east-1.amazonaws.com",
}

var CNNorth1 = Region{
"cn-north-1",
"https://ec2.cn-north-1.amazonaws.com.cn",
"https://s3.cn-north-1.amazonaws.com.cn",
"",
true,
true,
"",
"https://sns.cn-north-1.amazonaws.com.cn",
"https://sqs.cn-north-1.amazonaws.com.cn",
"",
"https://iam.cn-north-1.amazonaws.com.cn",
"https://elasticloadbalancing.cn-north-1.amazonaws.com.cn",
"",
"https://dynamodb.cn-north-1.amazonaws.com.cn",
ServiceInfo{"https://monitoring.cn-north-1.amazonaws.com.cn", V4Signature},
"https://autoscaling.cn-north-1.amazonaws.com.cn",
ServiceInfo{"https://rds.cn-north-1.amazonaws.com.cn", V4Signature},
"",
"https://sts.cn-north-1.amazonaws.com.cn",
"",
"",
}

0 comments on commit cc210f4

Please sign in to comment.