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
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!