Video není dostupné.
Omlouváme se.

Deploy Flask Application on AWS Lambda | Serverless Deployment in 7 Minutes by awsmasterchef

Sdílet
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

Komentáře • 39

  • @robstuckey
    @robstuckey Před 14 dny

    great video. thanks for sharing

  • @mep1tz
    @mep1tz Před 7 měsíci

    Thanks a lot bro, was looking for this everywhere

  • @ohWAFE
    @ohWAFE Před 10 měsíci

    Great tutorial i learned a lot. Thank you very much

    • @ohWAFE
      @ohWAFE Před 10 měsíci

      I used terraform

  • @brajeshsaxena377
    @brajeshsaxena377 Před 11 měsíci +4

    Can you please tell me how to create lambda layer from where you have taken the arn.
    Thanks and regards

    • @AwsMasterchef
      @AwsMasterchef  Před 11 měsíci +2

      Check this out : czcams.com/video/uxmF6WaYMzI/video.htmlsi=FcvbHUvMzxwlrQ_f
      If you like, do subscribe to the channel.

  • @darianamsanchez
    @darianamsanchez Před 10 měsíci +2

    The awsgi layer is not working. Function does not find the module

    • @AwsMasterchef
      @AwsMasterchef  Před 10 měsíci

      Check this out czcams.com/video/uxmF6WaYMzI/video.htmlsi=pQjXgfZWSwnNaWeC

  • @masteradvisor594
    @masteradvisor594 Před 4 dny

    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 ?

    • @AwsMasterchef
      @AwsMasterchef  Před 4 dny

      @@masteradvisor594 i suggested you to take image in base64 format in body, that would be better

    • @masteradvisor594
      @masteradvisor594 Před 4 dny

      @@AwsMasterchef means send image as a base64 encoded string ?

    • @AwsMasterchef
      @AwsMasterchef  Před 4 dny

      @@masteradvisor594 Yes

    • @masteradvisor594
      @masteradvisor594 Před 4 dny

      @@AwsMasterchef thanks sir I will try and send you feedback

  • @nattyzaddy6555
    @nattyzaddy6555 Před 7 měsíci

    I did this, but images do not load, and css does not load. Tried messing with settings. Will have to try again with docker.

  • @pavanrayal
    @pavanrayal Před 11 měsíci

    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

    • @AwsMasterchef
      @AwsMasterchef  Před 11 měsíci

      You can try using
      return render_template('index.html',data=data)
      Those are jinja template which flask support

  • @LifeSurf123
    @LifeSurf123 Před 6 měsíci

    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?

    • @AwsMasterchef
      @AwsMasterchef  Před 6 měsíci

      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.

  • @serene7560
    @serene7560 Před měsícem

    this isn't working nowadays :(

  • @nazariistakhovskyi7291
    @nazariistakhovskyi7291 Před 10 měsíci

    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?

    • @AwsMasterchef
      @AwsMasterchef  Před 10 měsíci

      It will not run for 15 min, server starts when you hit an api request and server stops when your request get serves completely

    • @nazariistakhovskyi7291
      @nazariistakhovskyi7291 Před 10 měsíci

      @@AwsMasterchef thanks! It doesn't do what I need for my implementation, but it's a nice tutorial all the same!

  • @anonymoustrolls7952
    @anonymoustrolls7952 Před 3 měsíci

    can we deploy face emotion recognition website too ?

    • @AwsMasterchef
      @AwsMasterchef  Před 3 měsíci

      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

  • @chiraggarg4810
    @chiraggarg4810 Před 4 měsíci

    How to upload zip file using s3 bucket

  • @bipulkumarsinghit3889
    @bipulkumarsinghit3889 Před 10 měsíci

    Hello will it work fine with app which need to interact with data in order to function properly?

  • @sugunankumaraguru6643
    @sugunankumaraguru6643 Před 9 měsíci

    How you created that ARN? that step is missing.

    • @AwsMasterchef
      @AwsMasterchef  Před 9 měsíci

      czcams.com/video/uxmF6WaYMzI/video.htmlsi=yaDZzgiBpgJS5HIX
      Checkout how to create an layer in AWS

    • @rakinrkz9010
      @rakinrkz9010 Před 8 měsíci +1

      @@AwsMasterchef you should add this in the video description.

  • @anantachakraborty6804
    @anantachakraborty6804 Před 10 měsíci

    how to create that layer

    • @AwsMasterchef
      @AwsMasterchef  Před 9 měsíci

      czcams.com/video/uxmF6WaYMzI/video.htmlsi=yaDZzgiBpgJS5HIX

  • @dcminds5885
    @dcminds5885 Před 16 dny

    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'],
    "]}

    • @AwsMasterchef
      @AwsMasterchef  Před 16 dny

      @@dcminds5885 what's your python version in AWS lambda ?

    • @dcminds5885
      @dcminds5885 Před 16 dny

      @@AwsMasterchef 3.9

    • @AwsMasterchef
      @AwsMasterchef  Před 16 dny

      @@dcminds5885 can you please try with python 3.11

    • @dcminds5885
      @dcminds5885 Před 16 dny

      @@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

    • @AwsMasterchef
      @AwsMasterchef  Před 16 dny

      @@dcminds5885 czcams.com/video/2Jvzc4Q4Ky0/video.html try this