Skip to content

Commit

Permalink
Merge pull request #1341 from jkroepke/s3-dualstack
Browse files Browse the repository at this point in the history
internal/resource: enable DualStack for S3 connections
  • Loading branch information
bgilbert authored Mar 30, 2022
2 parents d1f7f70 + 740f9d3 commit 53fad9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resource/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func (f *Fetcher) fetchFromS3WithCreds(ctx context.Context, dest s3target, input
return err
}

awsConfig := aws.NewConfig().WithHTTPClient(httpClient)
awsConfig := aws.NewConfig().WithHTTPClient(httpClient).WithUseDualStack(true)
s3Client := s3.New(sess, awsConfig)
downloader := s3manager.NewDownloaderWithClient(s3Client)
if _, err := downloader.DownloadWithContext(ctx, dest, input); err != nil {
Expand Down

0 comments on commit 53fad9f

Please sign in to comment.