Video není dostupné.
Omlouváme se.
Deploy Flask Application on AWS Lambda | Serverless Deployment in 7 Minutes by awsmasterchef
Vložit
- čas přidán 18. 08. 2024
- In this video we have seen how we can deploy Flask app on serverless using aws lambda and api gateway
Library used - github.com/sla...
@AWS @gskfacts123 @awsdevelopers
Host flask app on AWS lambda
how to run api on AWS lambda and api gateway
flask app on aws lambda
deploy flask app on aws lambda
deploy flask app on aws lambda
serverless deployment
deploy Flask application on lambda
great video. thanks for sharing
Thanks a lot bro, was looking for this everywhere
Great tutorial i learned a lot. Thank you very much
I used terraform
Can you please tell me how to create lambda layer from where you have taken the arn.
Thanks and regards
Check this out : czcams.com/video/uxmF6WaYMzI/video.htmlsi=FcvbHUvMzxwlrQ_f
If you like, do subscribe to the channel.
The awsgi layer is not working. Function does not find the module
Check this out czcams.com/video/uxmF6WaYMzI/video.htmlsi=pQjXgfZWSwnNaWeC
i have a small question can i use this to image processing. i have a multipart/form-data with image and i need to process image and return it can i do it with this ?
@@masteradvisor594 i suggested you to take image in base64 format in body, that would be better
@@AwsMasterchef means send image as a base64 encoded string ?
@@masteradvisor594 Yes
@@AwsMasterchef thanks sir I will try and send you feedback
I did this, but images do not load, and css does not load. Tried messing with settings. Will have to try again with docker.
Thanks for the video, currently the code is working fine with a basic lambda function, but what if we need to re route it to a html page instead of returning jsonify message
You can try using
return render_template('index.html',data=data)
Those are jinja template which flask support
If I am trying to deploy a function that uses AI models is it okay to put all my dependencies and the models in a zip file to upload as a layer?
The reason I ask is because I am trying to upload a zip file but it is ~550MB and Lambda Layers says that it has to be less than about 250MB I think.
Any way around this?
Could I possibly upload the zip files in different parts to create multiple layers?
It's not possible to deploy on lambda which has a size more than 250MB. I suggest to use AWS Fargate service which has no size limitation and also runs in serverless mode.
this isn't working nowadays :(
hello! Will the app run continuously on lambda until it times out (15 min), or will it start when you hit it with a request, server the request and the stop?
It will not run for 15 min, server starts when you hit an api request and server stops when your request get serves completely
@@AwsMasterchef thanks! It doesn't do what I need for my implementation, but it's a nice tutorial all the same!
can we deploy face emotion recognition website too ?
Any specific service you are using for face emotion ?
Actually it depend on Multiple possible factors like time and size of code if those are in limits definitely you can
How to upload zip file using s3 bucket
Hello will it work fine with app which need to interact with data in order to function properly?
Yes it will work fine
How you created that ARN? that step is missing.
czcams.com/video/uxmF6WaYMzI/video.htmlsi=yaDZzgiBpgJS5HIX
Checkout how to create an layer in AWS
@@AwsMasterchef you should add this in the video description.
how to create that layer
czcams.com/video/uxmF6WaYMzI/video.htmlsi=yaDZzgiBpgJS5HIX
I am getting error. Please help me with this
{"errorMessage": "'httpMethod'", "errorType": "KeyError", "requestId": "c141cedf-e8de-4fde-9da5-2c8f8f6bfdab", "stackTrace": [" File \"/var/task/lambda_function.py\", line 16, in lambda_handler
return awsgi.response(app, event, context)
", " File \"/opt/python/awsgi/__init__.py\", line 172, in response
output = app(environ(event, context), sr)
", " File \"/opt/python/awsgi/__init__.py\", line 121, in environ
'REQUEST_METHOD': event['httpMethod'],
"]}
@@dcminds5885 what's your python version in AWS lambda ?
@@AwsMasterchef 3.9
@@dcminds5885 can you please try with python 3.11
@@AwsMasterchef still same error. Is there any setting to be done in API gateway. The steps explained in video for api gateway is different than now it is available in AWS console
@@dcminds5885 czcams.com/video/2Jvzc4Q4Ky0/video.html try this