Deploy your python application along with dependencies to AWS Lambda

preview_player
Показать описание
while building any python application, you use a lot of different libraries, but the AWS lambda only provides you python runtime that has only the standard python libraries. In order to run your code with additional dependencies, you need to provide those dependencies to AWS lambda yourself.

In this video, I will show you how to create your deployment package(your code and required dependencies) for AWS Lambda.

Рекомендации по теме
Комментарии
Автор

Great video, you have showed all the steps one by one. Thanks.

sagnikmukherjee
Автор

Thanks for such a wonderful explanation.

UpendraKumar-zclm
Автор

Thanks, it was helpful.. had lot of issues with postgres lib and lambda, couldn't do it using Layers, requried to bundle with code

ravibhanushali
Автор

in most if not all real use cases, the zip files dependencies are larger than the 50MB lambda limit

TheWalkinParadoxx
Автор

you have uploaded my deployment.zip file after uploading where deployment folder gone????

jadonsumit
Автор

Thank you. If I have multiple python files handling different task, should I include all the. py files in the same zip folder? Also to install depends can we use requirements.txt?

TheAstroengineer
Автор

Very Very informative.
Could you please do a video where you containerize your code with docker locally then deploy to ECR... I couldnt figure that out for 4 hours.

uygzssj
Автор

Hi
I dont want to upload zip from AWS lambda interface. Can we do it from CLI?

sairajbhise
Автор

hi, brother. it's a very nice video. I have noticed here one thing. when you are uploading your code on aws lambda then there is no new directory formed. ever I have tried every time a new directory formed inside the main directory. How did you do it?

jadonsumit
Автор

How can this be done at scale? Is there a way you can run a script to deploy a series of microservices?

Alexander_Liteplo
Автор

Can you create a tutorial for lambda with AWS fargate ? This is for lambda functions with large package size.

BiranchiNarayanNayak
Автор

Thanks .
Can we do same for pandas and numpy ?

VijayNaramalli
Автор

I've got an error because dependencies (consist of telebot, tensorflow, openpyxl, scikit-learn) reach out the limit. Can you give me some solution? Thanks.

alfafa
Автор

Thanks for the video, it was very clear and precise, In the same way, I wanted to use the azure-identity package with my aws lambda function so for that purpose I created a directory and installed the azure-identity package using the pip command then converted it into a zip file and uploaded it to AWS lambda function along with function.py file. When I ran the script I got the import error stating that
Error Message: {
"errorMessage": "Unable to import module 'lambda_function': cannot import name 'x509' from (unknown location)",
"errorType": "Runtime.ImportModuleError",
"requestId": "3e17800f-0330-40f5-af54-69d860fbfdc1",
"stackTrace": []
} which is the dependent package for the azure-identity package. I would be grateful if you could please help me on how to fix this issue.

ManojKumar-zngf