This is actually a bit complicated because puppeteer and node_module installation for this project exceeds the maximum package size (250MB) for an AWS lambda job.
To get around this issue, we can use serverless-chrome which bundles up a headless binary for chrome for Lambda deployment. This means a partial rewrite of how we're currently using Puppeteer.
From the original Issue:
This is actually a bit complicated because puppeteer and node_module installation for this project exceeds the maximum package size (250MB) for an AWS lambda job.
To get around this issue, we can use
serverless-chrome
which bundles up a headless binary for chrome for Lambda deployment. This means a partial rewrite of how we're currently using Puppeteer.An Instruction guide that seems to be helpful: