Closed Prinzhorn closed 5 years ago
@Prinzhorn can you include the steps ? I am using https://github.com/shelfio/chrome-aws-lambda-layer but have no idea actually how to use it on the runtime
I am using https://github.com/shelfio/chrome-aws-lambda-layer
I'm not using layers, I literally just had the binary in my project and pointed chromeBinary
to it
I've switched to https://github.com/alixaxel/chrome-aws-lambda and it works out of the box. Having access to puppeteer gives you all the options you need.
Do you have any sample snippet which I can refer. I can't install pupetter on aws lambda, its over 250mb. My package is not getting uploaded. So needed an alternative
I'm literally using https://github.com/alixaxel/chrome-aws-lambda#usage
It's puppeteer-core, I have puppeteer
as devDependencies
so it's used only locally
This is just for people like me who are trying to get this to work on Lambda. Now there's a search result, yay.
I'm using the binary from https://github.com/adieuadieu/serverless-chrome/releases
I had to add a few flags to make it run:
Source: https://github.com/adieuadieu/serverless-chrome/blob/886c2c4f5c5b2e8f9b79670e0935ee8afb970aab/packages/lambda/src/flags.js