Apify Discord Mirror

Updated 5 months ago

Running Playwright Crawler on AWS Elastic Beanstalk with Amazon Linux

At a glance

The community member is facing challenges with deploying a Playwright crawler on AWS Elastic Beanstalk, which uses Amazon Linux. The main issue is with the npx playwright install command, which primarily supports Ubuntu, while the community member is working with Amazon Linux on AWS.

The community member has tried the following approaches:

  • Executing npx playwright install chromium --with-deps --dry-run to identify the dependencies and installing them using yum (since Amazon Linux is Fedora-based).
  • Attempting to install Chromium through npm as a workaround, which worked locally but not in Docker with the Amazon Linux image on AWS.

The community member has encountered the following issues:

  • The npx playwright install command is not compatible with Amazon Linux.
  • The workaround with npm installation of Chromium is not effective in the AWS environment, despite success in a local setup and Docker container with the Amazon Linux image.

The community member is requesting assistance from the

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