Relative Content

Tag Archive for aws-lambdapuppeteerchromium

/tmp/chromium: cannot execute binary file in AWS lambda

I’m trying to generate PDF from html templates. I’m using a layer with puppeteer-core and @sparticuz/chromium-min libraries. I added this layer in a Lambda function.
As far as I know this chromium-min library doesn’t have some files that are needed. So you need to download them. Following the example of this link: https://github.com/Sparticuz/chromium/blob/master/examples/remote-min-binary/index.js