From 98b8d046d2bf692e0e74a413bf7026a6caae4f8c Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Tue, 18 Jun 2024 15:26:30 +0000 Subject: [PATCH] Add region Signed-off-by: Gabriel Adrian Samfira --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 9b9be3b..a249bd5 100644 --- a/config/config.go +++ b/config/config.go @@ -128,7 +128,7 @@ func (c Config) GetAWSConfig(ctx context.Context) (aws.Config, error) { config.WithRegion(c.Region), ) case AWSCredentialTypeRole: - cfg, err = config.LoadDefaultConfig(ctx) + cfg, err = config.LoadDefaultConfig(ctx, config.WithRegion(c.Region)) default: return aws.Config{}, fmt.Errorf("unknown credential type: %s", c.Credentials.CredentialType) }