From 26b3a6295da80743783aa35978c183dba81ed046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Emiliano=20Cabrera=20Blancas?= Date: Thu, 5 Dec 2024 10:00:21 -0600 Subject: [PATCH] Delete RequiredWith from DefaultFunc --- internal/provider/auth_aws.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/provider/auth_aws.go b/internal/provider/auth_aws.go index d8047fd268..3d10b95c42 100644 --- a/internal/provider/auth_aws.go +++ b/internal/provider/auth_aws.go @@ -52,11 +52,10 @@ func GetAWSLoginSchemaResource(authField string) *schema.Resource { DefaultFunc: schema.EnvDefaultFunc("AWS_ACCESS_KEY_ID", nil), }, consts.FieldAWSSecretAccessKey: { - Type: schema.TypeString, - Optional: true, - Description: `The AWS secret access key.`, - DefaultFunc: schema.EnvDefaultFunc("AWS_SECRET_ACCESS_KEY", nil), - RequiredWith: []string{fmt.Sprintf("%s.0.%s", authField, consts.FieldAWSAccessKeyID)}, + Type: schema.TypeString, + Optional: true, + Description: `The AWS secret access key.`, + DefaultFunc: schema.EnvDefaultFunc("AWS_SECRET_ACCESS_KEY", nil), }, consts.FieldAWSSessionToken: { Type: schema.TypeString,