Skip to content

Commit

Permalink
internal/resource: enable DualStack for S3 connections
Browse files Browse the repository at this point in the history
DualStack endpoints allows IPv6 connections to AWS S3 buckets. This is need for IPv6 native subnets.

Fixes #1340
  • Loading branch information
jkroepke committed Mar 27, 2022
1 parent d1f7f70 commit 740f9d3
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 740f9d3

Please sign in to comment.