From f3393cd75fa5d6329324985e831630dc3c48ce2e Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Fri, 4 Oct 2024 13:02:21 -0700 Subject: [PATCH] set a region field when using a custom endpoint --- pkg/pipeline/sink/uploader/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pipeline/sink/uploader/s3.go b/pkg/pipeline/sink/uploader/s3.go index 973ef8a4..afbacc08 100644 --- a/pkg/pipeline/sink/uploader/s3.go +++ b/pkg/pipeline/sink/uploader/s3.go @@ -53,7 +53,7 @@ func newS3Uploader(conf *config.EgressS3Upload) (uploader, error) { opts := func(o *awsConfig.LoadOptions) error { if conf.Region != "" { o.Region = conf.Region - } else if conf.Endpoint == "" { + } else { o.Region = defaultBucketLocation }