Skip to content

Commit 53fad9f

Browse files
authored
Merge pull request #1341 from jkroepke/s3-dualstack
internal/resource: enable DualStack for S3 connections
2 parents d1f7f70 + 740f9d3 commit 53fad9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/resource/url.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func (f *Fetcher) fetchFromS3WithCreds(ctx context.Context, dest s3target, input
464464
return err
465465
}
466466

467-
awsConfig := aws.NewConfig().WithHTTPClient(httpClient)
467+
awsConfig := aws.NewConfig().WithHTTPClient(httpClient).WithUseDualStack(true)
468468
s3Client := s3.New(sess, awsConfig)
469469
downloader := s3manager.NewDownloaderWithClient(s3Client)
470470
if _, err := downloader.DownloadWithContext(ctx, dest, input); err != nil {

0 commit comments

Comments
 (0)