Esse voluptatem cupiditate rerum blanditiis et laboriosam debitis.
When dealing with large files they have to be read in a stream. It's just too much to load 18gb into the buffer. Node's fs.createReadStream works amazing.
f you are an online business lender, you have plenty to do to verify a business and perform your KYB in order to issue a loan.
Most of this process is documented really well by AWS here
Puppeteer has deprecated waitFor! But it's not as terrible as you think.
Uploading directly to Lambda has a size limit of 50MB. This makes it difficult for Puppeteer, which is a very large library. This is your solution.