ec2/config: Use provided region instead of hardcoding us-west-2

This commit is contained in:
Radek Simko 2015-04-09 12:35:25 +01:00
parent 5c3ec3ddcc
commit 947761f34f
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 {