Deploy a Serverless Flask App using Zappa

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 54

  • @prettyprinted
    @prettyprinted  4 роки тому

    Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql

  • @davidpaez_co
    @davidpaez_co 5 років тому +2

    It's like you read my mind...this is exactly what I need right now! Thanks a million

    • @prettyprinted
      @prettyprinted  5 років тому +1

      You're welcome! Thanks for watching.

  • @karimmahmoud1412
    @karimmahmoud1412 4 роки тому +1

    Antony please how can I add flask app to a website hosting not on the root for example www.example/app , i tried many solutions but all routes except "/" and all static files are not loading :(

  • @WaldirBorbaJunior
    @WaldirBorbaJunior 5 років тому +4

    Fantastic. Could you please make one about Docker?

  • @univuniveral9713
    @univuniveral9713 5 років тому +1

    The issue I have now is the file size is too large, even after deleting all unnecessary code: Here is the message: "raise error_class(parsed_response, operation_name)
    botocore.errorfactory.InvalidParameterValueException: An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Unzipped size must be smaller than 262144000 bytes". Please tell me how to resolve this.

  • @itsbinhphan
    @itsbinhphan 4 роки тому

    Thanks so much! I was able to get Zappa working for the first time!

  • @univuniveral9713
    @univuniveral9713 5 років тому +2

    How does zappa treat project files and folders. I realise that when I do from .models import something, that is when I get the error "Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code."

    • @juanfcgb
      @juanfcgb 3 роки тому

      I got exactly same error. Did you manage to sort it out? Thanks

    • @univuniveral9713
      @univuniveral9713 3 роки тому +1

      ​@@juanfcgb No. I am not using Zappa anymore, because that skill does not even appear on job descriptions. I resorted to AWS.

  • @lardosian
    @lardosian 5 років тому +1

    Cheers mate, audio sounding very nice.

  • @b2bleads
    @b2bleads 5 років тому +2

    Could you use Django with an relational database in the serverless environment?

    • @lardosian
      @lardosian 5 років тому

      I'd say they got you covered!

    • @prettyprinted
      @prettyprinted  5 років тому +1

      Yeah, the database would be separate from your app, so it wouldn't have any issues calling the database on each request.

  • @pi5549
    @pi5549 4 роки тому

    Great tutorial! How about putting the bash commands you used in the readme in the github repo? Otherwise we have to look thru the video and pick them out...

  • @aanchalb6163
    @aanchalb6163 3 роки тому

    while moving the credentials file, it gives mv : Cannot create a file when that file already exists. Error. Please help

    • @prettyprinted
      @prettyprinted  3 роки тому +1

      Try using the move command on that location first to move the old file out of the way so you can try again.

  • @outofoffice5904
    @outofoffice5904 3 роки тому

    Hey Anthony., Can you create a video on deploying flask on IIS?

  • @DanielBowne
    @DanielBowne 2 роки тому

    Thanks for the great video! Do you happen to know the minimum permissions to deploy this? It seems like many of the Zappa and Chalice guides just go straight to admin policy, and not the minimum needed with security in mind.

  • @catbat06
    @catbat06 3 роки тому +1

    That's an impressive level of pedantry to put a comma in Hello World haha, good form

  • @tejasadineni8043
    @tejasadineni8043 4 роки тому

    How to stop the deployed one

  • @jimkom4284
    @jimkom4284 4 роки тому

    Is this using EventBridge (as trigger for the lambda function) or API Gateway?

    • @tekknokrat
      @tekknokrat 3 роки тому

      I am interested how the approach works with EventBridge. How do I get access to the payload?

  • @Whattodo972
    @Whattodo972 5 років тому

    can you please show how to serve static files from cloudfront with zappa. I have been stuck with this problem for months now. i am currently serving them from s3.

  • @tejasarlimatti8420
    @tejasarlimatti8420 5 років тому +1

    Love you man

  • @DragonKidPlaysMC
    @DragonKidPlaysMC 4 роки тому

    Can aws lamda listen to twitter webbooks?

  • @HisSonsMusic
    @HisSonsMusic 5 років тому

    What are your thoughts on the FastApi framework

    • @prettyprinted
      @prettyprinted  5 років тому

      I haven't used it yet, but I'll take a look at it.

    • @HisSonsMusic
      @HisSonsMusic 5 років тому

      @@prettyprinted okay bro

  • @ko-Daegu
    @ko-Daegu 3 роки тому

    That’s actually great Zappa : for fast deployment
    or
    magnum(pypi.org/project/magnum/)
    Which gives ya a zip file Ans you go Ans deploy it (do all the settings you need)
    Didn’t know python had great environment for server-less thought I had to work with JS

  • @prabhashswain1878
    @prabhashswain1878 4 роки тому

    Tq sir.its really awesome ♥️

  • @whatwouldericdo
    @whatwouldericdo 5 років тому

    Did you end up nuking the website?

  • @karlfinance3980
    @karlfinance3980 5 років тому

    很好,我喜欢这个 加油!

  • @univuniveral9713
    @univuniveral9713 5 років тому

    Univ Univeral
    1 second ago
    Again, you run just what works after yoiu have fixed all the errors but you have not shown us how you actually got there: I followed all your instructions I got " in add_auth
    raise NoCredentialsError botocore.exceptions.NoCredentialsError: Unable to locate credentials"

    • @prettyprinted
      @prettyprinted  5 років тому

      Did you move your credentials to the .aws folder?

    • @univuniveral9713
      @univuniveral9713 5 років тому

      @@prettyprinted Yeah. But solved. The` issue was that I had to update the credentials by running "aws configure" on the command line and entering the new credentials

  • @Grahfx
    @Grahfx 4 роки тому +2

    just loss the past 2 days trying to deploy a lambda with Zappa... believe me if you are trying to deploy something serious (not a hello world app), stay away from this thing.

  • @nits_koh
    @nits_koh 5 років тому

    Is the service free?

    • @prettyprinted
      @prettyprinted  5 років тому

      I believe AWS offers a free trial for low use accounts.

  • @rangabharath4253
    @rangabharath4253 5 років тому

    Awesome

  • @univuniveral9713
    @univuniveral9713 5 років тому

    Again, you run just what works after yoiu have fixed all the errors but you have not shown us how you actually got there: I followed all your instructions I got " File "c:\users\user\docume~1\progra~4\test_d~1\myenv\lib\site-packages\botocore\auth.py", line 357, in add_auth
    raise NoCredentialsError
    botocore.exceptions.NoCredentialsError: Unable to locate credentials"

    • @aanchalb6163
      @aanchalb6163 3 роки тому

      how did u resolve this error? can u pls suggest.. i m struggling with this

    • @univuniveral9713
      @univuniveral9713 3 роки тому

      @@aanchalb6163 No I discontinued. I am not using Zappa anymore, because that skill does not even appear on job descriptions. I resorted to AWS.

    • @aanchalb6163
      @aanchalb6163 3 роки тому

      @@univuniveral9713 oh ok.. but i want to deploy my api to aws lambda.. so dnt know what to use? can u assist

  • @abirulezz
    @abirulezz 5 років тому

    do a django one!

    • @prettyprinted
      @prettyprinted  5 років тому

      It's pretty much the same, but I'll consider making it.

  • @munembre7526
    @munembre7526 5 років тому

    Awesome. Can u make some videos about Docker, and maybe say something about virtual environment, and why is smart to use one and when. I will like half of your chanel, and rest after video :) , lol blackmailed :)

    • @prettyprinted
      @prettyprinted  5 років тому

      I'm considering making a video about Docker.