Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

adding support for ec2 container services #228

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
320 changes: 166 additions & 154 deletions aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,193 +37,205 @@ type Region struct {
AutoScalingEndpoint string
RdsEndpoint string
Route53Endpoint string
ECSEndpoint string
}

var USGovWest = Region{
"us-gov-west-1",
"https://ec2.us-gov-west-1.amazonaws.com",
"https://s3-fips-us-gov-west-1.amazonaws.com",
"",
true,
true,
"",
"https://sns.us-gov-west-1.amazonaws.com",
"https://sqs.us-gov-west-1.amazonaws.com",
"https://iam.us-gov.amazonaws.com",
"https://elasticloadbalancing.us-gov-west-1.amazonaws.com",
"https://autoscaling.us-gov-west-1.amazonaws.com",
"https://rds.us-gov-west-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "us-gov-west-1",
EC2Endpoint: "https://ec2.us-gov-west-1.amazonaws.com",
S3Endpoint: "https://s3-fips-us-gov-west-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "",
SNSEndpoint: "https://sns.us-gov-west-1.amazonaws.com",
SQSEndpoint: "https://sqs.us-gov-west-1.amazonaws.com",
IAMEndpoint: "https://iam.us-gov.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.us-gov-west-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.us-gov-west-1.amazonaws.com",
RdsEndpoint: "https://rds.us-gov-west-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var USEast = Region{
"us-east-1",
"https://ec2.us-east-1.amazonaws.com",
"https://s3.amazonaws.com",
"",
false,
false,
"https://sdb.amazonaws.com",
"https://sns.us-east-1.amazonaws.com",
"https://sqs.us-east-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.us-east-1.amazonaws.com",
"https://autoscaling.us-east-1.amazonaws.com",
"https://rds.us-east-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "us-east-1",
EC2Endpoint: "https://ec2.us-east-1.amazonaws.com",
S3Endpoint: "https://s3.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: false,
S3LowercaseBucket: false,
SDBEndpoint: "https://sdb.amazonaws.com",
SNSEndpoint: "https://sns.us-east-1.amazonaws.com",
SQSEndpoint: "https://sqs.us-east-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.us-east-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.us-east-1.amazonaws.com",
RdsEndpoint: "https://rds.us-east-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "https://ecs.us-east-1.amazonaws.com",
}

var USWest = Region{
"us-west-1",
"https://ec2.us-west-1.amazonaws.com",
"https://s3-us-west-1.amazonaws.com",
"",
true,
true,
"https://sdb.us-west-1.amazonaws.com",
"https://sns.us-west-1.amazonaws.com",
"https://sqs.us-west-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.us-west-1.amazonaws.com",
"https://autoscaling.us-west-1.amazonaws.com",
"https://rds.us-west-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "us-west-1",
EC2Endpoint: "https://ec2.us-west-1.amazonaws.com",
S3Endpoint: "https://s3-us-west-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.us-west-1.amazonaws.com",
SNSEndpoint: "https://sns.us-west-1.amazonaws.com",
SQSEndpoint: "https://sqs.us-west-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.us-west-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.us-west-1.amazonaws.com",
RdsEndpoint: "https://rds.us-west-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var USWest2 = Region{
"us-west-2",
"https://ec2.us-west-2.amazonaws.com",
"https://s3-us-west-2.amazonaws.com",
"",
true,
true,
"https://sdb.us-west-2.amazonaws.com",
"https://sns.us-west-2.amazonaws.com",
"https://sqs.us-west-2.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.us-west-2.amazonaws.com",
"https://autoscaling.us-west-2.amazonaws.com",
"https://rds.us-west-2.amazonaws.com",
"https://route53.amazonaws.com",
Name: "us-west-2",
EC2Endpoint: "https://ec2.us-west-2.amazonaws.com",
S3Endpoint: "https://s3-us-west-2.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.us-west-2.amazonaws.com",
SNSEndpoint: "https://sns.us-west-2.amazonaws.com",
SQSEndpoint: "https://sqs.us-west-2.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.us-west-2.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.us-west-2.amazonaws.com",
RdsEndpoint: "https://rds.us-west-2.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var EUWest = Region{
"eu-west-1",
"https://ec2.eu-west-1.amazonaws.com",
"https://s3-eu-west-1.amazonaws.com",
"",
true,
true,
"https://sdb.eu-west-1.amazonaws.com",
"https://sns.eu-west-1.amazonaws.com",
"https://sqs.eu-west-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.eu-west-1.amazonaws.com",
"https://autoscaling.eu-west-1.amazonaws.com",
"https://rds.eu-west-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "eu-west-1",
EC2Endpoint: "https://ec2.eu-west-1.amazonaws.com",
S3Endpoint: "https://s3-eu-west-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.eu-west-1.amazonaws.com",
SNSEndpoint: "https://sns.eu-west-1.amazonaws.com",
SQSEndpoint: "https://sqs.eu-west-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.eu-west-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.eu-west-1.amazonaws.com",
RdsEndpoint: "https://rds.eu-west-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var EUCentral = Region{
"eu-central-1",
"https://ec2.eu-central-1.amazonaws.com",
"https://s3-eu-central-1.amazonaws.com",
"",
true,
true,
"",
"https://sns.eu-central-1.amazonaws.com",
"https://sqs.eu-central-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.eu-central-1.amazonaws.com",
"https://autoscaling.eu-central-1.amazonaws.com",
"https://rds.eu-central-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "eu-central-1",
EC2Endpoint: "https://ec2.eu-central-1.amazonaws.com",
S3Endpoint: "https://s3-eu-central-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "",
SNSEndpoint: "https://sns.eu-central-1.amazonaws.com",
SQSEndpoint: "https://sqs.eu-central-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.eu-central-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.eu-central-1.amazonaws.com",
RdsEndpoint: "https://rds.eu-central-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var APSoutheast = Region{
"ap-southeast-1",
"https://ec2.ap-southeast-1.amazonaws.com",
"https://s3-ap-southeast-1.amazonaws.com",
"",
true,
true,
"https://sdb.ap-southeast-1.amazonaws.com",
"https://sns.ap-southeast-1.amazonaws.com",
"https://sqs.ap-southeast-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.ap-southeast-1.amazonaws.com",
"https://autoscaling.ap-southeast-1.amazonaws.com",
"https://rds.ap-southeast-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "ap-southeast-1",
EC2Endpoint: "https://ec2.ap-southeast-1.amazonaws.com",
S3Endpoint: "https://s3-ap-southeast-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.ap-southeast-1.amazonaws.com",
SNSEndpoint: "https://sns.ap-southeast-1.amazonaws.com",
SQSEndpoint: "https://sqs.ap-southeast-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.ap-southeast-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.ap-southeast-1.amazonaws.com",
RdsEndpoint: "https://rds.ap-southeast-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var APSoutheast2 = Region{
"ap-southeast-2",
"https://ec2.ap-southeast-2.amazonaws.com",
"https://s3-ap-southeast-2.amazonaws.com",
"",
true,
true,
"https://sdb.ap-southeast-2.amazonaws.com",
"https://sns.ap-southeast-2.amazonaws.com",
"https://sqs.ap-southeast-2.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.ap-southeast-2.amazonaws.com",
"https://autoscaling.ap-southeast-2.amazonaws.com",
"https://rds.ap-southeast-2.amazonaws.com",
"https://route53.amazonaws.com",
Name: "ap-southeast-2",
EC2Endpoint: "https://ec2.ap-southeast-2.amazonaws.com",
S3Endpoint: "https://s3-ap-southeast-2.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.ap-southeast-2.amazonaws.com",
SNSEndpoint: "https://sns.ap-southeast-2.amazonaws.com",
SQSEndpoint: "https://sqs.ap-southeast-2.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.ap-southeast-2.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.ap-southeast-2.amazonaws.com",
RdsEndpoint: "https://rds.ap-southeast-2.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var APNortheast = Region{
"ap-northeast-1",
"https://ec2.ap-northeast-1.amazonaws.com",
"https://s3-ap-northeast-1.amazonaws.com",
"",
true,
true,
"https://sdb.ap-northeast-1.amazonaws.com",
"https://sns.ap-northeast-1.amazonaws.com",
"https://sqs.ap-northeast-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.ap-northeast-1.amazonaws.com",
"https://autoscaling.ap-northeast-1.amazonaws.com",
"https://rds.ap-northeast-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "ap-northeast-1",
EC2Endpoint: "https://ec2.ap-northeast-1.amazonaws.com",
S3Endpoint: "https://s3-ap-northeast-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.ap-northeast-1.amazonaws.com",
SNSEndpoint: "https://sns.ap-northeast-1.amazonaws.com",
SQSEndpoint: "https://sqs.ap-northeast-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.ap-northeast-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.ap-northeast-1.amazonaws.com",
RdsEndpoint: "https://rds.ap-northeast-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var SAEast = Region{
"sa-east-1",
"https://ec2.sa-east-1.amazonaws.com",
"https://s3-sa-east-1.amazonaws.com",
"",
true,
true,
"https://sdb.sa-east-1.amazonaws.com",
"https://sns.sa-east-1.amazonaws.com",
"https://sqs.sa-east-1.amazonaws.com",
"https://iam.amazonaws.com",
"https://elasticloadbalancing.sa-east-1.amazonaws.com",
"https://autoscaling.sa-east-1.amazonaws.com",
"https://rds.sa-east-1.amazonaws.com",
"https://route53.amazonaws.com",
Name: "sa-east-1",
EC2Endpoint: "https://ec2.sa-east-1.amazonaws.com",
S3Endpoint: "https://s3-sa-east-1.amazonaws.com",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "https://sdb.sa-east-1.amazonaws.com",
SNSEndpoint: "https://sns.sa-east-1.amazonaws.com",
SQSEndpoint: "https://sqs.sa-east-1.amazonaws.com",
IAMEndpoint: "https://iam.amazonaws.com",
ELBEndpoint: "https://elasticloadbalancing.sa-east-1.amazonaws.com",
AutoScalingEndpoint: "https://autoscaling.sa-east-1.amazonaws.com",
RdsEndpoint: "https://rds.sa-east-1.amazonaws.com",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var CNNorth = 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://autoscaling.cn-north-1.amazonaws.com.cn",
"https://rds.cn-north-1.amazonaws.com.cn",
"https://route53.amazonaws.com",
Name: "cn-north-1",
EC2Endpoint: "https://ec2.cn-north-1.amazonaws.com.cn",
S3Endpoint: "https://s3.cn-north-1.amazonaws.com.cn",
S3BucketEndpoint: "",
S3LocationConstraint: true,
S3LowercaseBucket: true,
SDBEndpoint: "",
SNSEndpoint: "https://sns.cn-north-1.amazonaws.com.cn",
SQSEndpoint: "https://sqs.cn-north-1.amazonaws.com.cn",
IAMEndpoint: "https://iam.cn-north-1.amazonaws.com.cn",
ELBEndpoint: "https://elasticloadbalancing.cn-north-1.amazonaws.com.cn",
AutoScalingEndpoint: "https://autoscaling.cn-north-1.amazonaws.com.cn",
RdsEndpoint: "https://rds.cn-north-1.amazonaws.com.cn",
Route53Endpoint: "https://route53.amazonaws.com",
ECSEndpoint: "",
}

var Regions = map[string]Region{
Expand Down
Loading