Skip to content

Commit 61214db

Browse files
Add region
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent 223e1c9 commit 61214db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (c Config) GetAWSConfig(ctx context.Context) (aws.Config, error) {
128128
config.WithRegion(c.Region),
129129
)
130130
case AWSCredentialTypeRole:
131-
cfg, err = config.LoadDefaultConfig(ctx)
131+
cfg, err = config.LoadDefaultConfig(ctx, config.WithRegion(c.Region))
132132
default:
133133
return aws.Config{}, fmt.Errorf("unknown credential type: %s", c.Credentials.CredentialType)
134134
}

0 commit comments

Comments
 (0)