shelfio / chrome-aws-lambda-layer

58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
MIT License
637 stars 45 forks source link

Can the Chrome included in this library be used in a Lambda function using Java? #58

Open ukjjangstudy opened 11 months ago

ukjjangstudy commented 11 months ago

Can I apply this layer to a Lambda function that I am using with Java? I currently only require Chrome, but adding Chrome to the Lambda layer would exceed the 250MB size limit. Therefore, I'm curious if I can use Chrome browser in Java through this library.

iwaduarte commented 11 months ago

@ukjjangstudy I believe it is not possible. This lambda layer runs a Chromium version with JavaScript runtime and code (node_modules, etc.). There is also decompression, flag configuration, and so on and forth.

I think the best bet would be to stripe the compressed files (chromium, aws, swiftshader) and work out a Java API for the build folder.