From 947761f34fbeeff449e8e1027fb6a93fe5c9ce15 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 9 Apr 2015 12:35:25 +0100 Subject: [PATCH] ec2/config: Use provided region instead of hardcoding us-west-2 --- builtin/providers/aws/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/config.go b/builtin/providers/aws/config.go index 0811d86a5..898af5dad 100644 --- a/builtin/providers/aws/config.go +++ b/builtin/providers/aws/config.go @@ -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 {