Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] ARM support on lambda #298

Open
nmatteiperformline opened this issue Aug 28, 2023 · 6 comments
Open

[REQUEST] ARM support on lambda #298

nmatteiperformline opened this issue Aug 28, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@nmatteiperformline
Copy link

What would you like to have implemented?

ARM support for lambda would be useful. The function runs on amd64 just fine with the sample code, however swapping the arch to arm64 runs the function but it won't launch the browser. It exits early cleanly from the finally block, but doesn't run anything in the try/catch

Not a huge issue, but this would be a nice add.
Thank you.

@nmatteiperformline nmatteiperformline added the enhancement New feature or request label Aug 28, 2023
@ostaplisovyj
Copy link

I believe the problem is missing chrome binaries for arm64 architecture. This should be a known issue for quite a while, but it seems like there aren't many updates on this topic

@stephankaag
Copy link

stephankaag commented Jun 28, 2024

I was able to compile Chromium for AWS Lambda on the ARM64 architecture (only Amazon Linux 2 for now, will build for Amazon Linux 2023 asap).

Amazon Linux 2 (NodeJS 16 & NodeJS 18):
Download Chromium 120 (For Playwright v1.40.1 , v1.40.0 & Puppeteer v21.8.0)
Download Chromium 121 (For Playwright v1.41.2 , v1.41.1 , v1.41.0 & Puppeteer v22.1.0 , v22.0.0 , v21.11.0 , v21.10.0 , v21.9.0)

Amazon Linux 2023 (NodeJS 20):
Download Chromium 120 (For Playwright v1.40.1 , v1.40.0 & Puppeteer v21.8.0)
Download Chromium 121 (For Playwright v1.41.2 , v1.41.1 , v1.41.0 & Puppeteer v22.1.0 , v22.0.0 , v21.11.0 , v21.10.0 , v21.9.0)

@krashnakant
Copy link

How can I use this binary with this package ? Please share step

@stephankaag
Copy link

How can I use this binary with this package ? Please share step

They are not meant to be used with this package.

in fact, you don't need an npm package for it at all (see the readme)

@fvcpinheiro
Copy link

@stephankaag, I'm trying to target version 123. How should I setup PLAYWRIGHT_CHROMIUM_DOWNLOAD_HOST environment variable with? I tried several approaches but it seems to keep failing.
Removing that env at all, it defaults to a azure host, but doesn't work as well.

I'm using the following dependencies running on nodejs 18 runtime environment.

{
  "name": "nodejs_lambdas",
  "dependencies": {
    "playwright-core": "1.42.1",
    "puppeteer-core": "22.6.5"
  }
}

Thanks!

@stephankaag
Copy link

@stephankaag, I'm trying to target version 123. How should I setup PLAYWRIGHT_CHROMIUM_DOWNLOAD_HOST environment variable with? I tried several approaches but it seems to keep failing. Removing that env at all, it defaults to a azure host, but doesn't work as well.

I'm using the following dependencies running on nodejs 18 runtime environment.

{
  "name": "nodejs_lambdas",
  "dependencies": {
    "playwright-core": "1.42.1",
    "puppeteer-core": "22.6.5"
  }
}

Thanks!

Can you please create a new ticket here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants