Puppeteer On Lambda! Updated And Better

November 28, 2023
1 Minute Read
AI & Automationblog main image

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"  },

We have a video tutorial for this. Please send an email to newsletter@cobaltintelligence.com for more information.

Access Real-Time Secretary of State Data and Automate your underwriting process. We help Alternative Funders work smarter through AI Technology. Get our FREE AI Tools here

youtube iconlinkedin iconfacebook iconlinkedin iconlinkedin icon

We send Alternative Finance and
AI Automation News Updates

Subscribe to our Newsletter!

Subscribe to our newsletter

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
SUBSCRIBE