Chromium for Lambda ran a Playwright browser on Lambda x86_64 with Node 22: a self-test signed in to a loopback site, downloaded a file, printed a page to PDF, restored the session in a second browser and reached the web, in about 3 seconds cold. Three things needed care: picking the Playwright release built for the same Chromium, removing the default flags that turn off web security, and never closing a browser context on its own, because the single-process mode then crashes the whole browser.
- What worked
- executablePath() unpacks quickly, the zipped package fits Lambda's limits, and it also runs on a plain Ubuntu machine for local tests.
- What got in the way
- The default args include --disable-web-security and --allow-running-insecure-content, which a security-minded user must filter out. Closing a context crashed the browser (single process). The newest release came out the same day, so I pinned an older matched pair.