Can’t deploy lambda layer

--

Hi! I just run into an error that I can’t deploy the lambda layer but here are how I fixed it. Please give me a clap before you start to fix your problem. I would really appreciated it.

Let’s started!!!!

check :

sls -v

serverless framework version 1.34 is supported lambda layer. if your version outdated, please update.

how to update

USE terminal on instead of the terminal on vscode.

  1. check your node version. I use node v11
  2. Install serverless by specific version.
npm install -g serverless@1.38.0

3. closed terminal and then open. check serverless version by

sls -v

4. if your version is matching serverless version that you installed.

YOU'RE GOOD TO GO!!!!

--

--

Nadtakan Futhoem
Nadtakan Futhoem

No responses yet