diff --git a/pkg/actions/lua/storage/aws/s3.go b/pkg/actions/lua/storage/aws/s3.go index ca64c7a0732..98604d5a680 100644 --- a/pkg/actions/lua/storage/aws/s3.go +++ b/pkg/actions/lua/storage/aws/s3.go @@ -80,7 +80,9 @@ func (c *S3Client) client() *s3.Client { panic(err) } return s3.NewFromConfig(cfg, func(o *s3.Options) { - o.BaseEndpoint = &c.Endpoint + if c.Endpoint != "" { + o.BaseEndpoint = aws.String(c.Endpoint) + } }) }