Merge pull request #1440 from TimeIncOSS/fix-ec2-region

ec2/config: Use provided region instead of hardcoding us-west-2
This commit is contained in:
Paul Hinze 2015-04-09 07:51:23 -05:00
commit 36e364a239
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func (c *Config) Client() (interface{}, error) {
client.ec2conn = ec2.New(creds, c.Region, nil)
client.iamconn = iam.New(creds, c.Region, nil)
client.ec2SDKconn = awsEC2.New(&awsSDK.Config{Region: "us-west-2"})
client.ec2SDKconn = awsEC2.New(&awsSDK.Config{Region: c.Region})
}
if len(errs) > 0 {