From 568a875ac3f5fe46e14474f4a9edde7a705dd442 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 3 Sep 2022 17:13:02 +0100 Subject: [PATCH] Use Terraform provider environment variable convention - fixes #19 --- dme/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dme/provider.go b/dme/provider.go index 346ada2b..7e2867fa 100644 --- a/dme/provider.go +++ b/dme/provider.go @@ -15,14 +15,14 @@ func Provider() terraform.ResourceProvider { Type: schema.TypeString, Required: true, Description: "API key for HTTP call", - DefaultFunc: schema.EnvDefaultFunc("apikey", nil), + DefaultFunc: schema.EnvDefaultFunc("DME_API_KEY", nil), }, "secret_key": &schema.Schema{ Type: schema.TypeString, Required: true, Description: "Secret Key for HMAC", - DefaultFunc: schema.EnvDefaultFunc("secretkey", nil), + DefaultFunc: schema.EnvDefaultFunc("DME_SECRET_KEY", nil), }, "insecure": &schema.Schema{