Running Puppeteer on AWS Lambda
What is Puppeteer?
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium.
What is AWS Lambda?
AWS Lambda is serverless computing service.
Use Puppeteer on AWS Lambda
AWS Lambda has limitation about source code size.(Headless-Chrome installed with Puppeteer > 280MB ) So, Lambda run with Docker Image based on ‘amazon/aws-lambda-nodejs:14’
Repository
https://github.com/KanghoonYi/lambda-puppeteer
Reference
- Puppeteer Repository
- AWS Blog
- AWS Documentation
This post is licensed under CC BY 4.0 by the author.