To use:
cd build && zip -r dependencies.zip nodejs
Then upload the dependencies.zip
to Lambda layers
Check samples/index.js
for example handlers
Notes
app/
: local dependencies testingbuild/
: build foldercolors/
: dependencies foldersamples/
: handlers example
This code is taken from how to create node modules