From 1bdbdaf192abbd316c4b65ced622696a85dda0f5 Mon Sep 17 00:00:00 2001 From: Jonathan Buch Date: Sun, 7 Aug 2022 20:56:37 +0200 Subject: [PATCH] provider, use user/password instead of root user/pwd * Makes meaning more clear * see https://github.com/minio/minio/pull/11185 --- minio/provider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minio/provider.go b/minio/provider.go index 96dad61a..18bffbab 100644 --- a/minio/provider.go +++ b/minio/provider.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -//Provider creates a new provider +// Provider creates a new provider func Provider() *schema.Provider { return &schema.Provider{ Schema: map[string]*schema.Schema{ @@ -30,7 +30,7 @@ func Provider() *schema.Provider { Required: true, Description: "Minio Access Key", DefaultFunc: schema.MultiEnvDefaultFunc([]string{ - "MINIO_ROOT_USER", "MINIO_ACCESS_KEY", + "MINIO_USER", "MINIO_ACCESS_KEY", }, nil), }, "minio_secret_key": { @@ -38,7 +38,7 @@ func Provider() *schema.Provider { Required: true, Description: "Minio Secret Key", DefaultFunc: schema.MultiEnvDefaultFunc([]string{ - "MINIO_ROOT_PASSWORD", "MINIO_SECRET_KEY", + "MINIO_PASSWORD", "MINIO_SECRET_KEY", }, nil), }, "minio_api_version": {