Deploy a Serverless Flask App using Zappa

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 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.

  • @WaldirBorbaJunior
    @WaldirBorbaJunior 5 ปีที่แล้ว +4

    Fantastic. Could you please make one about Docker?

  • @itsbinhphan
    @itsbinhphan 4 ปีที่แล้ว

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

  • @catbat06
    @catbat06 3 ปีที่แล้ว +1

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

  • @lardosian
    @lardosian 5 ปีที่แล้ว +1

    Cheers mate, audio sounding very nice.

  • @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 :(

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

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

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

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

  • @outofoffice5904
    @outofoffice5904 3 ปีที่แล้ว

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

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

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

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

  • @tejasarlimatti8420
    @tejasarlimatti8420 5 ปีที่แล้ว +1

    Love you man

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

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

  • @prabhashswain1878
    @prabhashswain1878 4 ปีที่แล้ว

    Tq sir.its really awesome ♥️

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

  • @DragonKidPlaysMC
    @DragonKidPlaysMC 4 ปีที่แล้ว

    Can aws lamda listen to twitter webbooks?

  • @tejasadineni8043
    @tejasadineni8043 3 ปีที่แล้ว

    How to stop the deployed one

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

  • @karlfinance3980
    @karlfinance3980 5 ปีที่แล้ว

    很好,我喜欢这个 加油!

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

  • @whatwouldericdo
    @whatwouldericdo 4 ปีที่แล้ว

    Did you end up nuking the website?

  • @rangabharath4253
    @rangabharath4253 5 ปีที่แล้ว

    Awesome

  • @abirulezz
    @abirulezz 5 ปีที่แล้ว

    do a django one!

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

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

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

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

  • @nits_koh
    @nits_koh 5 ปีที่แล้ว

    Is the service free?

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

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