Skip to content

Commit 90190de

Browse files
authored
test(sources/s3): fix missing region error (#4131)
Fixes: 5f56550 ("feat(sources/s3): migrate to AWS SDK v2 (#4069)") Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
1 parent 5f56550 commit 90190de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sources/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (s *Source) newClient(ctx context.Context, region, roleArn string) (*s3.Cli
158158

159159
if roleArn != "" {
160160
// The config loaded here will be used to retrieve and refresh temporary credentials from AssumeRole
161-
cfg, err := config.LoadDefaultConfig(ctx, config.WithCredentialsProvider(credsProvider))
161+
cfg, err := config.LoadDefaultConfig(ctx, config.WithRegion(region), config.WithCredentialsProvider(credsProvider))
162162
if err != nil {
163163
return nil, err
164164
}

0 commit comments

Comments
 (0)