Merge pull request #1446 from BrianBland/updateGoamz

[driver/s3] Adds support for ap-northeast-2 region
This commit is contained in:
Brian Bland 2016-02-10 14:44:09 -08:00
commit 87ae10b867
3 changed files with 28 additions and 3 deletions

6
Godeps/Godeps.json generated
View file

@ -77,15 +77,15 @@
}, },
{ {
"ImportPath": "github.com/docker/goamz/aws", "ImportPath": "github.com/docker/goamz/aws",
"Rev": "29510ec7eba995a3750f6b38128c5318f8b71592" "Rev": "f0a21f5b2e12f83a505ecf79b633bb2035cf6f85"
}, },
{ {
"ImportPath": "github.com/docker/goamz/cloudfront", "ImportPath": "github.com/docker/goamz/cloudfront",
"Rev": "29510ec7eba995a3750f6b38128c5318f8b71592" "Rev": "f0a21f5b2e12f83a505ecf79b633bb2035cf6f85"
}, },
{ {
"ImportPath": "github.com/docker/goamz/s3", "ImportPath": "github.com/docker/goamz/s3",
"Rev": "29510ec7eba995a3750f6b38128c5318f8b71592" "Rev": "f0a21f5b2e12f83a505ecf79b633bb2035cf6f85"
}, },
{ {
"ImportPath": "github.com/docker/libtrust", "ImportPath": "github.com/docker/libtrust",

View file

@ -75,6 +75,7 @@ type Region struct {
var Regions = map[string]Region{ var Regions = map[string]Region{
APNortheast.Name: APNortheast, APNortheast.Name: APNortheast,
APNortheast2.Name: APNortheast2,
APSoutheast.Name: APSoutheast, APSoutheast.Name: APSoutheast,
APSoutheast2.Name: APSoutheast2, APSoutheast2.Name: APSoutheast2,
EUCentral.Name: EUCentral, EUCentral.Name: EUCentral,

View file

@ -216,6 +216,30 @@ var APNortheast = Region{
"https://elasticache.ap-northeast-1.amazonaws.com", "https://elasticache.ap-northeast-1.amazonaws.com",
} }
var APNortheast2 = Region{
"ap-northeast-2",
ServiceInfo{"https://ec2.ap-northeast-2.amazonaws.com", V2Signature},
"https://s3-ap-northeast-2.amazonaws.com",
"",
true,
true,
"",
"https://sns.ap-northeast-2.amazonaws.com",
"https://sqs.ap-northeast-2.amazonaws.com",
"",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.ap-northeast-2.amazonaws.com",
"https://kms.ap-northeast-2.amazonaws.com",
"https://dynamodb.ap-northeast-2.amazonaws.com",
ServiceInfo{"https://monitoring.ap-northeast-2.amazonaws.com", V2Signature},
"https://autoscaling.ap-northeast-2.amazonaws.com",
ServiceInfo{"https://rds.ap-northeast-2.amazonaws.com", V2Signature},
"https://kinesis.ap-northeast-2.amazonaws.com",
"https://sts.ap-northeast-2.amazonaws.com",
"https://cloudformation.ap-northeast-2.amazonaws.com",
"https://elasticache.ap-northeast-2.amazonaws.com",
}
var SAEast = Region{ var SAEast = Region{
"sa-east-1", "sa-east-1",
ServiceInfo{"https://ec2.sa-east-1.amazonaws.com", V2Signature}, ServiceInfo{"https://ec2.sa-east-1.amazonaws.com", V2Signature},