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

Поделиться
HTML-код
  • Опубликовано: 25 авг 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

Комментарии • 39

  • @robstuckey
    @robstuckey 21 день назад

    great video. thanks for sharing

  • @mep1tz
    @mep1tz 8 месяцев назад

    Thanks a lot bro, was looking for this everywhere

  • @ohWAFE
    @ohWAFE 10 месяцев назад

    Great tutorial i learned a lot. Thank you very much

    • @ohWAFE
      @ohWAFE 10 месяцев назад

      I used terraform

  • @brajeshsaxena377
    @brajeshsaxena377 Год назад +4

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

    • @AwsMasterchef
      @AwsMasterchef  Год назад +2

      Check this out : ruclips.net/video/uxmF6WaYMzI/видео.htmlsi=FcvbHUvMzxwlrQ_f
      If you like, do subscribe to the channel.

  • @darianamsanchez
    @darianamsanchez 11 месяцев назад +2

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

    • @AwsMasterchef
      @AwsMasterchef  11 месяцев назад

      Check this out ruclips.net/video/uxmF6WaYMzI/видео.htmlsi=pQjXgfZWSwnNaWeC

  • @masteradvisor594
    @masteradvisor594 10 дней назад

    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  10 дней назад

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

    • @masteradvisor594
      @masteradvisor594 10 дней назад

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

    • @AwsMasterchef
      @AwsMasterchef  10 дней назад

      @@masteradvisor594 Yes

    • @masteradvisor594
      @masteradvisor594 10 дней назад

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

  • @nattyzaddy6555
    @nattyzaddy6555 7 месяцев назад

    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 11 месяцев назад

    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  11 месяцев назад

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

  • @serene7560
    @serene7560 2 месяца назад

    this isn't working nowadays :(

  • @nazariistakhovskyi7291
    @nazariistakhovskyi7291 10 месяцев назад

    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  10 месяцев назад

      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 10 месяцев назад

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

  • @anonymoustrolls7952
    @anonymoustrolls7952 3 месяца назад

    can we deploy face emotion recognition website too ?

    • @AwsMasterchef
      @AwsMasterchef  3 месяца назад

      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

  • @bipulkumarsinghit3889
    @bipulkumarsinghit3889 10 месяцев назад

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

  • @LifeSurf123
    @LifeSurf123 7 месяцев назад

    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  7 месяцев назад

      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.

  • @chiraggarg4810
    @chiraggarg4810 4 месяца назад

    How to upload zip file using s3 bucket

  • @sugunankumaraguru6643
    @sugunankumaraguru6643 9 месяцев назад

    How you created that ARN? that step is missing.

    • @AwsMasterchef
      @AwsMasterchef  9 месяцев назад

      ruclips.net/video/uxmF6WaYMzI/видео.htmlsi=yaDZzgiBpgJS5HIX
      Checkout how to create an layer in AWS

    • @rakinrkz9010
      @rakinrkz9010 8 месяцев назад +1

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

  • @anantachakraborty6804
    @anantachakraborty6804 10 месяцев назад

    how to create that layer

    • @AwsMasterchef
      @AwsMasterchef  9 месяцев назад

      ruclips.net/video/uxmF6WaYMzI/видео.htmlsi=yaDZzgiBpgJS5HIX

  • @dcminds5885
    @dcminds5885 22 дня назад

    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  22 дня назад

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

    • @dcminds5885
      @dcminds5885 22 дня назад

      @@AwsMasterchef 3.9

    • @AwsMasterchef
      @AwsMasterchef  22 дня назад

      @@dcminds5885 can you please try with python 3.11

    • @dcminds5885
      @dcminds5885 22 дня назад

      @@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  22 дня назад

      @@dcminds5885 ruclips.net/video/2Jvzc4Q4Ky0/видео.html try this