ec2/config: Use provided region instead of hardcoding us-west-2
This commit is contained in:
parent
5c3ec3ddcc
commit
947761f34f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue