Apify and Crawlee Official Forum

Updated 4 months ago

Running Playwright Crawler on AWS Elastic Beanstalk with Amazon Linux

Hello Playwright Community,

I'm facing a challenge with deploying a Playwright crawler on AWS Elastic Beanstalk, which uses Amazon Linux. The main issue arises with npx playwright install, as it primarily supports Ubuntu, and I'm working with Amazon Linux on AWS.

Attempts Made:
  1. I executed npx playwright install chromium --with-deps --dry-run to identify the dependencies and tried installing them using yum (since Amazon Linux is Fedora-based).
  2. I attempted to install Chromium through npm as a workaround. This solution worked locally, but not in Docker with the Amazon Linux image on AWS.
Issue Encountered:
  • The npx playwright install compatibility with Amazon Linux is problematic.
  • The workaround with npm installation of Chromium is not effective in the AWS environment, despite success in a local setup and docker container with amazon linux image.
Request for Assistance:
Has anyone successfully deployed Playwright on AWS Elastic Beanstalk with Amazon Linux? If so, could you share insights or steps on how you managed to resolve the compatibility issues with npx playwright install? Any tips or alternative approaches that have worked in a similar setup would be greatly appreciated.

Relevant documentation: Playwright Library - Browser Downloads

Thank you in advance for any guidance or suggestions you can provide!
Add a reply
Sign up and join the conversation on Discord