How to use layers with Lambda functions?
In this video we look at how to use layers with AWS Lambda functions. (with nodejs)
We look at a demo app which uses two npm modules (axios and image-size) which were installed using npm and are part of the bundle. We then extract these modules into a layer. We attach this layer to our function and import and use the modules we extracted.
It has 2 advantages:
- it reduces the size of the bundle
- it makes it possible to re-use the extracted code across several functions.
We also look at how to separate local files and extract them into a layer and then import them from the function.
If you would like to see an example of using layers, check out this video https://youtu.be/JdJo-_Y1ZIM in which we use a layer to install ImageMagick to resize images within a lambda function.
⚡️ Github: https://github.com/alexkrkn
⚡️ Office Hours: https://undefinedapps.com/office-hours
⚡️ More Lambda Videos:
- How to install npm modules in AWS Lambda? https://youtu.be/RnFowJ130pc
- AWS Lambda versioning & aliases - How to deploy using versions + API Gateway https://youtu.be/OGMaE63YgEU
- How to deploy a lambda function using github actions? https://youtu.be/UQiRhKgQ5X0
- How to connect AWS Lambda to a MySQL database to update it? (using RDS proxy) https://youtu.be/jOLgUjcTFEI
- How to use environment variables with a Lambda function? (and how to encrypt them with KMS) https://youtu.be/J9QKS0NrH7I
- How to build a chat using Lambda + WebSocket + API Gateway? (nodejs) https://youtu.be/BcWD-M2PJ-8
- How to use ImageMagick with a Lambda function on AWS? https://youtu.be/JdJo-_Y1ZIM
- How to pass a url query string or a route parameter to AWS Lambda from API Gateway? https://youtu.be/V3i25clEvSE
- What is an AWS lambda function? https://youtu.be/okEvGTKpWl8
- How to restrict access to a static S3 site using HTTP Basic Auth? https://youtu.be/gc3w_bMtcQE
- AWS Lambda intro - versions, aliases, concurrency, triggers, logs and monitoring https://youtu.be/BFvF2oAnNpY
#lambda #layers #nodejs
Видео How to use layers with Lambda functions? канала BiteSize Academy
We look at a demo app which uses two npm modules (axios and image-size) which were installed using npm and are part of the bundle. We then extract these modules into a layer. We attach this layer to our function and import and use the modules we extracted.
It has 2 advantages:
- it reduces the size of the bundle
- it makes it possible to re-use the extracted code across several functions.
We also look at how to separate local files and extract them into a layer and then import them from the function.
If you would like to see an example of using layers, check out this video https://youtu.be/JdJo-_Y1ZIM in which we use a layer to install ImageMagick to resize images within a lambda function.
⚡️ Github: https://github.com/alexkrkn
⚡️ Office Hours: https://undefinedapps.com/office-hours
⚡️ More Lambda Videos:
- How to install npm modules in AWS Lambda? https://youtu.be/RnFowJ130pc
- AWS Lambda versioning & aliases - How to deploy using versions + API Gateway https://youtu.be/OGMaE63YgEU
- How to deploy a lambda function using github actions? https://youtu.be/UQiRhKgQ5X0
- How to connect AWS Lambda to a MySQL database to update it? (using RDS proxy) https://youtu.be/jOLgUjcTFEI
- How to use environment variables with a Lambda function? (and how to encrypt them with KMS) https://youtu.be/J9QKS0NrH7I
- How to build a chat using Lambda + WebSocket + API Gateway? (nodejs) https://youtu.be/BcWD-M2PJ-8
- How to use ImageMagick with a Lambda function on AWS? https://youtu.be/JdJo-_Y1ZIM
- How to pass a url query string or a route parameter to AWS Lambda from API Gateway? https://youtu.be/V3i25clEvSE
- What is an AWS lambda function? https://youtu.be/okEvGTKpWl8
- How to restrict access to a static S3 site using HTTP Basic Auth? https://youtu.be/gc3w_bMtcQE
- AWS Lambda intro - versions, aliases, concurrency, triggers, logs and monitoring https://youtu.be/BFvF2oAnNpY
#lambda #layers #nodejs
Видео How to use layers with Lambda functions? канала BiteSize Academy
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![AWS Lambda Layers Python](https://i.ytimg.com/vi/cz8QjmgfGHc/default.jpg)
![Lambda Layers | Theory and Demo with Code](https://i.ytimg.com/vi/stovPJCVXcw/default.jpg)
![How to install npm modules in AWS Lambda?](https://i.ytimg.com/vi/RnFowJ130pc/default.jpg)
![Lambda layers with Serverless Framework and good practices | Serverless](https://i.ytimg.com/vi/aKD9Vftr6i4/default.jpg)
![All New Lambda Layers Tutorial: Save Space and Remove Common Code](https://i.ytimg.com/vi/5a2LS7gNECk/default.jpg)
![Excel LAMBDA - HOW & WHEN you Should use it](https://i.ytimg.com/vi/Rm4y5UqauRw/default.jpg)
![What is Lambda Throttling? (and how to fix it!) | AWS Feature Overview](https://i.ytimg.com/vi/2tmsyweB3k4/default.jpg)
![How to use environment variables with a Lambda function? (and how to encrypt them with KMS)](https://i.ytimg.com/vi/J9QKS0NrH7I/default.jpg)
![AWS Step Functions with Lambda Tutorial | Step by Step Guide](https://i.ytimg.com/vi/s0XFX3WHg0w/default.jpg)
![How to use Selenium on AWS lambda Python3 7](https://i.ytimg.com/vi/jWqbYiHudt8/default.jpg)
![How to deploy a lambda function using github actions?](https://i.ytimg.com/vi/UQiRhKgQ5X0/default.jpg)
![AWS Lambda Layers Tutorial | Managing Python libraries in a better way](https://i.ytimg.com/vi/3BH79Uciw5w/default.jpg)
![Deep Dive Into Lambda Layers and the Lambda Runtime API - AWS Online Tech Talks](https://i.ytimg.com/vi/gCQHulp3aVo/default.jpg)
![Using AWS Lambda Layers with AWS SAM | SAM Series #5](https://i.ytimg.com/vi/w2kmiuSBKZU/default.jpg)
![AWS Lambda Layers - Sharing Code Between Lambda Functions](https://i.ytimg.com/vi/QDBg2vp6vKY/default.jpg)
![AWS Lambda Layers with Node JS (2020)](https://i.ytimg.com/vi/-r4GJlkdJo0/default.jpg)
![How to extract text from multi-page PDF & save it as CSV - Amazon Textract tutorial p4](https://i.ytimg.com/vi/L6vdd9OYF_8/default.jpg)
![How to Install Pandas on AWS Lambda Function](https://i.ytimg.com/vi/1UDEp90S9h8/default.jpg)
![Parallel Media Processing with ffmpeg and AWS Lambda (Part 1)](https://i.ytimg.com/vi/NQMC1du9pxg/default.jpg)
![How to Rapidly Create Layers for AWS Lambda (Python) creating deployment zip for any python package](https://i.ytimg.com/vi/Z1OlJzduGZ0/default.jpg)