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

Layer with Python runtime support #63

Open justincandoit opened 8 months ago

justincandoit commented 8 months ago

Would it be possible to create a similar Chrome AWS Lambda layer that is compatible with Python Lambda functions?

vladholubiev commented 8 months ago

It is supported; we publish the layer without restricting the runtime.

justincandoit commented 8 months ago

Do you know what the import statement would be?

vladholubiev commented 8 months ago

The layer contains a pre-compiled Chromium binary, which you can run just like any other executable in Python. It's probably located at /var/task/bin/chromium, but to confirm, you might want to download the Lambda Layer ZIP from AWS and check for yourself.