From cbece1dce1dfc70f8ae035df871954387b09566a Mon Sep 17 00:00:00 2001 From: hiroka-wada <47963288+wadda0714@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:19:18 +0900 Subject: [PATCH] add: Setenv HTTPS_PROXY for aws sdk (#1794) Co-authored-by: wadahiroka --- saas/saas.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/saas/saas.go b/saas/saas.go index 34a5c311..90ce6164 100644 --- a/saas/saas.go +++ b/saas/saas.go @@ -109,6 +109,10 @@ func (w Writer) Write(rs ...models.ScanResult) error { if err != nil { return xerrors.Errorf("Failed to new aws session. err: %w", err) } + // For S3 upload of aws sdk + if err := os.Setenv("HTTPS_PROXY", config.Conf.HTTPProxy); err != nil { + return xerrors.Errorf("Failed to set HTTP proxy: %s", err) + } svc := s3.New(sess) for _, r := range rs {