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
Attempts Made:
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
Relevant documentation: Playwright Library - Browser Downloads
Thank you in advance for any guidance or suggestions you can provide!
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:
- I executed
npx playwright install chromium --with-deps --dry-runto identify the dependencies and tried installing them usingyum(since Amazon Linux is Fedora-based). - 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.
- The
npx playwright installcompatibility 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.
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!