Install Python Dependency and Libraries on AWS Lambda

Опубликовано: 21 Сентябрь 2023
на канале: NKT Studios
15,581
258

This video shows you how to install Python Dependencies and Libraries on AWS Lambda using a Zip folder.

The Libraries used in the deployment package are Pandas, Numpy, and Requests but you can substitute them with any that you want such as SciPy.


🔔 Subscribe and never miss new videos: https://www.youtube.com/nktstudios?su...

⏱️TIMESTAMPS⏱️
00:00 - Install Python Dependency and Library on AWS Lambda
01:28 - Create Lambda Function Locally
01:48 - Lambda Code Explanation
02:47 - Create AWS Lambda Deployment Package
03:01 - Installing Libraries and Dependencies for AWS Lambda
04:44 - Create a Zip Folder with the Libraries
05:40 - Create Lambda Function in AWS Console
06:28 - Upload Zip Folder to Lambda Function
07:00 - Create a Test Event and Test Lambda Function

✔️ Source Code:
The Lambda function used can be found here:
https://gist.github.com/nktstudios/e0...

The terminal commands used are as follows:
Pandas
pip install --platform manylinux2014_x86_64 --target=package --implementation cp --python-version 3.9 --only-binary=:all: --upgrade pandas

Numpy
pip install --platform manylinux2014_x86_64 --target=package --implementation cp --python-version 3.9 --only-binary=:all: --upgrade numpy

Requests
pip install --platform manylinux2014_x86_64 --target=package --implementation cp --python-version 3.9 --only-binary=:all: --upgrade requests

🔹 My Courses: https://nktstudios.com/courses

⚡ My Gear
Windows Laptop: https://amzn.to/3d4xaK6
Recording Mic (Blue Yeti X): https://amzn.to/3rUyEws
Redragon Headset: https://amzn.to/33AMR8H

🎵 Music

✅ Let's connect:

Website: https://nktstudios.com

💬 Twitter - @nktstudios

Facebook:   / nktstudioz  

DISCLOSURE: Some of the links on this page are affiliate links, meaning, at no additional cost to you, I may earn a commission if you click through and make a purchase and/or subscribe. Affiliate commissions help us to continue making videos for you.

❤️ Thanks for watching.


Смотрите видео Install Python Dependency and Libraries on AWS Lambda онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь NKT Studios 21 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 15,581 раз и оно понравилось 258 людям.