From fbe475902744527cae403572ef56fea87e40249c Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Thu, 23 May 2024 01:01:12 +0530 Subject: [PATCH] add another empty string check for roleArn if statement --- flow/connectors/utils/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/connectors/utils/aws.go b/flow/connectors/utils/aws.go index 61268df3c8..7138144bb9 100644 --- a/flow/connectors/utils/aws.go +++ b/flow/connectors/utils/aws.go @@ -176,7 +176,7 @@ func GetAWSCredentialsProvider(ctx context.Context, connectorName string, peerCr AWS: peerCredentials.Credentials, EndpointUrl: peerCredentials.EndpointUrl, }, peerCredentials.Region) - if peerCredentials.RoleArn == nil { + if peerCredentials.RoleArn == nil || *peerCredentials.RoleArn == "" { logger.LoggerFromCtx(ctx).Info("Received AWS credentials from peer for connector: " + connectorName) return staticProvider, nil }