How To Import NPM module in AWS Lambda (Node.js) - using Layer

preview_player
Показать описание
About:

Connect with Product Meow:
YouTube @productmeow

⏰ Timecodes ⏰
0:05 - four major steps on how to upload npm module as layer to lamda
0:37 - create nodejs folder
0:56 - install npm package in nodejs folder
1:43 - zip nodejs folder
2:58 - verify if nodejs is successfully zipped
3:30 - start uploading zipped folder as layer in lambda
5:50 - test run lamda without adding layer - expect error
7:56 - add layer to lamda to start using the uploaded npm package
9:10 - test run lambda with layer added - expect success

#productmeow #aws #awstutorial #awslambda
Рекомендации по теме
Комментарии
Автор

I spent two days trying to figure out why my layer wasn't working.... and then you pointed out that I need to name my layer 'nodejs' which was exactly what I was missing. thanks so much!

EdgeQ
Автор

Very useful content! thank you very much!

ixen.
Автор

Hey. Can you do one on how to use the function URL and Environmental variables. And how to connect the function with your frontend part (AWS Ampilfy)

TopHitsMusic-bf
join shbcf.ru