aws / aws-lambda-base-images

Apache License 2.0
648 stars 107 forks source link

Lambda images with build tools #10

Open naphtul opened 3 years ago

naphtul commented 3 years ago

Hi,

In my project I have some dependencies that require compiling C code using "make" and other build tools. Before I install them in node_modules as a Lambda Layer, I prefer doing so in the environment closest to the lambda runtime. Up until node 12 (including) I was using another repo (lambci) as referred by an AWS Premium Support article. In node 14, that solution doesn't exist anymore.

It is possible to maintain a version of the images that contain the build tools, so that npm won't fail with: Error: not found: make

This is easily reproducible by running the following command: docker run --entrypoint npm amazon/aws-lambda-nodejs:14 i re2

Thanks!

justinmk3 commented 3 years ago

@naphtul you may want to raise this at https://github.com/aws/aws-sam-cli/ . Also worth searching existing issues there.