Python + Flask Deploy to Amazon Web Services Elastic Beanstalk (CI/CD with Git)

  Рет қаралды 41,717

Caleb Curry

Caleb Curry

Күн бұрын

Start your software dev career - calcur.tech/de... 💯 FREE Courses (100+ hours) - calcur.tech/al...
🐍 Python Course - calcur.tech/py...
✅ Data Structures & Algorithms - calcur.tech/ds...
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/ne...
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/sub...
👨🏻‍🎓 Courses - www.codebreakt...
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com...
🅿 Patreon - calcur.tech/pat...
🅖 GitHub Sponsors - github.com/spo...
Ⓟ Paypal - paypal.me/calcur
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/cr...
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/cr...

Пікірлер: 84
@codebreakthrough
@codebreakthrough 3 жыл бұрын
Timestamps: 00:00 - Intro 01:00 - Setting up our virtual environment 03:51 - requirements.txt 05:25 - Flask application 07:20 - AWS setup 09:50 - CI/CD CodePipeline from GitHub 11:36 - Git setup 15:30 - Deployment 21:19 - Next Steps
2 жыл бұрын
20:35 One Caleb moment :)
@WebDevCody
@WebDevCody 3 жыл бұрын
I’ve never used elastic beanstalk before, but boy was that easy to setup CI / CD with a couple clicks. Thanks for this video!
@aljon7992
@aljon7992 3 жыл бұрын
The self-taught programmer will always salute you!
@codebreakthrough
@codebreakthrough 3 жыл бұрын
Appreciate that!
@shonifari5783
@shonifari5783 3 жыл бұрын
Just an advice if u are not following from the AWS default region (Ohio - US) and want to change it. Maybe it was said in the video and I missed it. When you log on your was console, on the top right corner u have to choose the Region you are / prefer. Then proceed from 9:04 with the tutorial. I'm from London and I thought it picked it automatically, but if you don't do it then when u are at 16:06 to create a Pipeline, you won't find your env under your Region Amazing tutorial, I saved everything in my Notion. Thanks!
@patloeber
@patloeber 3 жыл бұрын
Nice Tutorial! Would love to see more Python deployment tutorials in the future :)
@elbazziii
@elbazziii 3 жыл бұрын
I found my new favorite youtuber today! I love the way you simplify everything and the out of nowhere comments that crack me up
@The7up
@The7up Жыл бұрын
For anyone still getting "Bad Gateway 502": You need to have a "requirements.txt" file in your git-repo like he makes in the video. AWS needs it.
@learnviapractice
@learnviapractice 3 жыл бұрын
This is an awesome video I have ever encountered. Thank you very much for giving such a great explanation on AWS deployment. Thank you so much.
@tadashikikuno7215
@tadashikikuno7215 3 жыл бұрын
Hi Caleb, thank you for your great tutorial. I'm a self-taught programmer. Do you have any recommended resources for people who want to keep learning on Flask and web development?
@Omar-zj4wp
@Omar-zj4wp 3 жыл бұрын
that's all I wanted for a week! THANK YOU so much for this video
@l.1204
@l.1204 3 жыл бұрын
Hi Caleb.... So, we don't need a Procfile to deploy on Beanstalk ??????
@ÁngelDiMaría-s7v
@ÁngelDiMaría-s7v 10 ай бұрын
20:40 play this part of the video at 0.25 speed with the volume booster browser extenion turned on all the way up for a deeper meaning.
@helderpinto8638
@helderpinto8638 3 жыл бұрын
"There is no additional charge for AWS Elastic Beanstalk. You pay for AWS resources (e.g. EC2 instances or S3 buckets) you create to store and run your application. You only pay for what you use, as you use it; there are no minimum fees and no upfront commitments."
@sidroy4616
@sidroy4616 2 жыл бұрын
Great stuff. Thank you. How about connecting to a cloud SQL deployment building off of above example as next tutorial?
@abhishekstatus_7
@abhishekstatus_7 3 жыл бұрын
Thanks for sharing the video Caleb ! It would be great if we can have access of those resources as well ! Thanks again !!
@carloscampos7709
@carloscampos7709 Жыл бұрын
I really like your explanation (and approach). Thanks a lot!
@rishibakshi2004
@rishibakshi2004 Жыл бұрын
thankyouuu so much man you saved my life❤❤❤❤😭😭😭😭😭😭😭😭😭😭😭😭
@BodrumDrone
@BodrumDrone 3 жыл бұрын
Very impressive tutorial. how can I get parameters from the URL for the query barcode number?
@karishmalondhe9647
@karishmalondhe9647 3 жыл бұрын
Hi, I am getting this error at the deploy stage: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. Failed to deploy application. What could be the reason? And how to fix this?
@Ratheshan03
@Ratheshan03 2 жыл бұрын
hey I'm getting this error too , can you let me know how to resolve this error?
@aminmohebbi9838
@aminmohebbi9838 Жыл бұрын
Hi, thanks for the video. I followed it step by step, but my URL link did not work. MyFlask application in flask's localhost works, but after deploying to Amazon Web Services Elastic Beanstalk, I got a 'Severe' error.
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
i am facing the same issue right now. has anyone found a solution for this, or troubleshooting steps?
@davidlanday2647
@davidlanday2647 Жыл бұрын
How would beanstalk work with .env or config files specific to my application? i.e: things I wouldn't necessarily push to git, but are required for my application to function?
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
is this still a valid method? any updates i should know about if i go this route?
@gandatrowx
@gandatrowx 3 жыл бұрын
Worked like a marvel. Thank you very much!
@vojtaripa8408
@vojtaripa8408 Жыл бұрын
Great video! Are you able to share the user groups you created to make this work? and the permissions needed
@jeffreyo5257
@jeffreyo5257 7 ай бұрын
don't forget to put source in front and it will work
@lzdps
@lzdps 2 жыл бұрын
What is your color scheme? It is really nice!
@maxmedcodes7919
@maxmedcodes7919 Жыл бұрын
14:46 LoooooL
@binggibanggabongo
@binggibanggabongo 3 жыл бұрын
Hey thank you so much from south korea for the cool explanations!!
@Pharaoization
@Pharaoization 3 жыл бұрын
Omg this is literally the project I'm just working on! Well, I'm using an API with a database, but still
@mylesmn1108
@mylesmn1108 9 ай бұрын
I used 'app' instead of 'application' and it crushed so may times. Thanks for the clarification
@heatvisuals
@heatvisuals 3 жыл бұрын
thanks for keeping it real caleb
@darianamsanchez
@darianamsanchez Жыл бұрын
Thank you! That worked great
@steveowoko4335
@steveowoko4335 3 жыл бұрын
Why am I getting a 502 Bad Gateway ?
@jonbezeau3124
@jonbezeau3124 2 жыл бұрын
Same
@JustThink2000
@JustThink2000 8 ай бұрын
I want do deploy a flask api in the same way, im assuming I would be using the same elastic beanstalk method?
@siddharthsharma8921
@siddharthsharma8921 8 ай бұрын
I do the exact same think but i get 502 error
@mf00085
@mf00085 3 жыл бұрын
This is amazinggg!!! Thank you so much
@dantesalvadornovoahernande9875
@dantesalvadornovoahernande9875 2 жыл бұрын
I just want to say thanks a lot, it is very helpfull to improve my skills.
@m.b786
@m.b786 3 жыл бұрын
AWS will execute pip3 -r requirement.txt automaticly ? you dont commit your .venv
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
is this being done on a linux machine? what do i need to do to follow this on windows using vs code?
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
ok caleb you said the answer right after i finished typing this and unpaused the video. yes, it's being demo'd on a linux machine for windows the command is: .\.venv\Scripts\Activate
@bibinvninan8057
@bibinvninan8057 9 ай бұрын
Thanks mate.. it worked
@TijuanaBorderJumper
@TijuanaBorderJumper 3 жыл бұрын
Love your content😁❤
@seanmuirhead2156
@seanmuirhead2156 Жыл бұрын
what if i want to deploy a specific folder within my github repository. hope this will be adressed
@run4ever102
@run4ever102 Жыл бұрын
Very helpful, thanks!
@abdulkadirosman2816
@abdulkadirosman2816 2 жыл бұрын
"slavery bad" said so nonchalant
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
yeh slavery IS bad. real bad. let's get that right and be very clear about it.
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
i'm stuck at the step of creating an Amazon EC2 instance because the configure service access step is asking me for an EC2 instance profile, but no instance profile populates in my dropdown. I go to the IAM page to supposedly try and create an instance profile but I don't see where that's possible to do. I clicked on my Role that should have the full access EC2 permissions, but i see nowhere the possibility to view instance profiles or to create them. Help please! Has anyone else faced this issue and know how to solve? At this point I am fully blocked at this step because I can't seem to find any other way for AWS to create an EC2 instance without failing for the reason of having no associated EC2 instance profile. Thanks in advance to anyone who can help me past this obstacle.
@prerna_mishra
@prerna_mishra 3 жыл бұрын
Saved my day!!!
@arshitaggarwal67
@arshitaggarwal67 2 жыл бұрын
Great tutorial!!
@rob5820
@rob5820 2 жыл бұрын
Is there a good tutorial on how to deploy front end files as well as my app.py file?
@bavidlynx3409
@bavidlynx3409 3 жыл бұрын
Next python + django web application with separate database server 🥺
@codebreakthrough
@codebreakthrough 3 жыл бұрын
That sounds like a really good idea, and I should be able to do that because I did a similar one with node. Do you have a database preference?
@Pharaoization
@Pharaoization 3 жыл бұрын
@@codebreakthrough PostgresSQL please!
@alperenersan
@alperenersan Жыл бұрын
hello, how can i use static ip with that type of app on aws lamda?
@muneebafaheem4040
@muneebafaheem4040 3 жыл бұрын
I am accessing it with IAM user so Github version 2 is not accessible to me. It is showing permission error"is not authorized to perform: access-analyzer:ListPolicyGenerations on resource: arn:aws:access-analyzer:us-east-:* with an explicit deny". And by Github version 1 it is showing 503 service unavailable error. Please assist as I have to deploy my project
@notrace316
@notrace316 3 жыл бұрын
Great video, thanks.
@talhaanwar2911
@talhaanwar2911 2 жыл бұрын
i did not get two things. first how it knew that i have to run flask code or django code. 2nd how it pick requirments.txt file
@PERSISTENTxMF
@PERSISTENTxMF 3 жыл бұрын
Why is everyone using sublime instead of vs code?
@ArunKumar-fi1wv
@ArunKumar-fi1wv 3 жыл бұрын
im getting Process default has been unhealthy for 4 minutes (Target.ResponseCodeMismatch). and ELB heath is failing can you please help
@tracywang1
@tracywang1 8 ай бұрын
perfect thanks
@gabbe2124
@gabbe2124 2 жыл бұрын
amazing thank you
@rebekahrichmond6559
@rebekahrichmond6559 3 жыл бұрын
Hi Caleb, I followed your video which was brilliant and so informative but I got this error, 502 Bad Gateway nginx/1.18.0. I'm not sure how to fix this error and was wondering have you ever experienced this before. Many thanks, Rebekah
@dascfpv2981
@dascfpv2981 3 жыл бұрын
I have the same problem, I'm using flask==1.1.2 , the deploy pipeline was Succeeded but the state of the enviroment has some WARNs like : 100.0 % of the requests are failing with HTTP 5xx. ELB processes are not healthy on all instances. ELB health is failing or not available for all instances. Im runing Python 3.7 running on 64bit Amazon Linux 2 and my application.py is runnning on my local pc on python 3.7.4, i dont know whats the problem 've tried change prot to 5000 or change the name of the python app from app.py -> application.py, and I'm taking the same errors :(
@AkshanshGusain
@AkshanshGusain 3 жыл бұрын
@@dascfpv2981 Did you find the solution?
@anshvijay516
@anshvijay516 Жыл бұрын
@@dascfpv2981 I am getting the same error right now were you able to fix it?
@DarionDAnjou
@DarionDAnjou 4 ай бұрын
i am getting site can't be reached when finished the CodePipeline setup and tried to run the app. Is this related to the same problem?
@Joe-ps7em
@Joe-ps7em Жыл бұрын
My "Health Status" says "Severe" in red. What is this caused by?
@Joe-ps7em
@Joe-ps7em Жыл бұрын
Now it says "Degraded"
@sheaksadi
@sheaksadi 3 жыл бұрын
That photo from thumbnail looks quite like a gekko
@codebreakthrough
@codebreakthrough 3 жыл бұрын
Are you implying I'm a reptilian humanoid or something?
@sheaksadi
@sheaksadi 3 жыл бұрын
@@codebreakthrough i am just saying you look like one in that picture
@bnllazul
@bnllazul 3 жыл бұрын
Good video, practical details. Yes slavery was, is and will be bad. Need to evolve and remove master/slave from our tech talk, it does not apply.
@sarthakraheja13
@sarthakraheja13 2 жыл бұрын
Amazing
@denisbaranoff
@denisbaranoff 3 жыл бұрын
OMG! Perfect English!!! It's extremely hard to hear Hindu developers
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 79 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 45 МЛН
Creating a Flask Web Server in EC2 on the AWS Free Tier from scratch!
17:28
Choosing a Compute Option on AWS
17:24
Be A Better Dev
Рет қаралды 32 М.
Easily Deploy a .NET Application to AWS Elastic Beanstalk
16:32
Milan Jovanović
Рет қаралды 31 М.
The IDEAL & Practical CI / CD Pipeline - Concepts Overview
22:36
Be A Better Dev
Рет қаралды 484 М.
Deploy Flask Web App on AWS Elastic Beanstalk|
10:31
Nachiketa Hebbar
Рет қаралды 41 М.
How to Deploy a Flask App to a Linux Server with a Domain Name
21:29
Pretty Printed
Рет қаралды 26 М.
50 Python Tips and Tricks for Beginners
42:41
Caleb Curry
Рет қаралды 66 М.
How to Deploy Flask with Gunicorn and Nginx (on Ubuntu)
13:50
Tony Teaches Tech
Рет қаралды 77 М.