From efd1e1ffb3c119feff5a1ae223b0e21a24ca28e2 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 30 May 2017 16:22:56 +0100 Subject: [PATCH] provider/aws: Run Configure as part of testAccPreCheck (#14925) --- builtin/providers/aws/provider_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/providers/aws/provider_test.go b/builtin/providers/aws/provider_test.go index 4df3ce727..fee6cb0e5 100644 --- a/builtin/providers/aws/provider_test.go +++ b/builtin/providers/aws/provider_test.go @@ -46,4 +46,8 @@ func testAccPreCheck(t *testing.T) { log.Println("[INFO] Test: Using us-west-2 as test region") os.Setenv("AWS_DEFAULT_REGION", "us-west-2") } + err := testAccProvider.Configure(terraform.NewResourceConfig(nil)) + if err != nil { + t.Fatal(err) + } }