Skip to content

The simplest demo of chrome automation by Node.js and playwright in AWS Lambda

Notifications You must be signed in to change notification settings

umihico/docker-playwright-lambda

Repository files navigation

docker-playwright-lambda

badge badge

This is minimum demo of chrome automation by Node.js and playwright in AWS Lambda

This image goes with these versions. These are automatically updated and tested everyday.

  • Node.js v22.11.0
  • Chromium 131.0.6778.33
  • Playwright 1.49.0

Running the demo

$ npm install -g serverless@^3 # skip this line if you have already installed Serverless Framework
$ export AWS_REGION=ap-northeast-1 # You can specify region or skip this line. us-east-1 will be used by default.
$ sls create --template-url "https://github.com/umihico/docker-playwright-lambda/tree/main" --path docker-playwright-lambda && cd $_
$ sls deploy
$ sls invoke --function demo # Yay! You will get texts of example.com

Side Projects

Are you interested in Python or Selenium? Please check out docker-selenium-lambda

If you don't want to create functions each time for each purpose, Please check out pythonista-chromeless