diff --git a/internal/storages/s3/s3.go b/internal/storages/s3/s3.go index 091eb9fd..3a19cfa0 100644 --- a/internal/storages/s3/s3.go +++ b/internal/storages/s3/s3.go @@ -125,7 +125,10 @@ func NewStorage(ctx context.Context, cfg *Config, logLevel string) (*Storage, er if cfg.Endpoint != "" { awsCfg.WithEndpoint(cfg.Endpoint) } - awsCfg.WithRegion(cfg.Region) + + if cfg.Region != "" { + awsCfg.WithRegion(cfg.Region) + } if cfg.CertFile != "" { file, err := os.Open(cfg.CertFile)