Posted on • Originally published atjavascriptwebscrapingguy.com on
Puppeteer on Lambda! Updated and better.
Uploading directly to Lambda has a size limit of 50MB.
This makes it difficult for Puppeteer, which is a very large library. Uploading your code to s3 and then updating your function from there increases this size limit to (I think) 250MB!
I use 7zip and typescript and here is my scripts that I use to upload to Lambda.
"scripts": { "zip": "tsc && 7z a -r function.zip ./dist/* node_modules/", "sendToLambda": "npm run zip && aws s3 cp function.zip s3://chrome-aws && aws lambda update-function-code --function-name puppeteer-on-lambda --s3-bucket chrome-aws --s3-key function.zip" },
Looking for business leads?
Using the techniques talked about here atjavascriptwebscrapingguy.com, we’ve been able to launch a way to access awesome web data. Learn more atCobalt Intelligence!
The postPuppeteer on Lambda! Updated and better. appeared first onJavascript Web Scraping Guy.
Top comments(1)

- LocationBoston
- EducationBS Computer Science Northeastern University, MBA Babson College
- WorkCloud Engineer at Connors Consulting LLC
- Joined
This is just spam
This is useless content that makes the site useless
For further actions, you may consider blocking this person and/orreporting abuse