Let’s provide axios as a Lambda layer

Prerequisites

  • AWS account
  • npm
  • zip

1. Create folder

mkdir nodejs
cd nodejs

2. Install dependency

npm install axios

3. Zip contents

cd ..
zip -r axios.zip nodejs

4. Publish to Lambda layers

Create new layer

--

--