1

I have two layers which each contain a single npm package. Neither are being recognized by Lambda as existing when testing the function. I get the error log: enter image description here

The layers are

enter image description here

and "tensorflowJS" is a layer containing a zipped node package with tensorflowjs installed in the same runtime as the layer's function. Are there additional configurations I'm missing to run an ML model serverlessly?

1
  • i know this is an old question, but did you ever figure this out? I'm having the exact same issue right now. Commented Feb 15, 2024 at 3:27

1 Answer 1

5

What is the structure of the files within the zip you used for these layers?

The documentation shows some examples: enter image description here

So make sure you have a nodejs folder inside the zip, then a node_modules folder within that, then your code within that.

Sign up to request clarification or add additional context in comments.

3 Comments

I have tensorflow-js.zip->nodejs->node_module-> @tensorflow + a bunch of dependencies
The folder should be named "node_modules" with an "s" at the end, not "node_module"
Sorry that is what I meant. tensorflow-js.zip->nodejs->node_modules-> @tensorflow + a bunch of dependencies

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.