Deploy Flask APP on AWS EC2 Instance | Flask on EC2 | Running Flask APP on AWS EC2 | AWS Demo
Vložit
- čas přidán 13. 10. 2022
- Deploy Flask APP on AWS EC2 Instance | Flask on EC2 | Running Flask APP on AWS EC2 | AWS Demo
Hi Learner,
In this video we will learn how to deploy Flask app on Amazon web services. We will deploy the Flask app on EC2 instance. .
Commands and code can be found here: github.com/yeshwanthlm/YouTub...
If you like the video please consider subscribing to the channel and hit the like button and share among your friends.
AWS Playlist: • AWS
Subscribe to the Channel: / amonkincloud
Thank you. I hope this helps. If you find this video useful please Like, Share and Subscribe to the channel!
Subscribe to the Channel: / amonkincloud
Regards,
A Monk in Cloud
(amonkincloud@gmail.com)
#AWS #LearnAWSforFree #Free #FreeResources #Top5 #2022 #AWSCommunityBuilderProgram #Community #CZcams
#MySql #Server #AWS #EC2 #Instance #EC2_Instance #Demo #MySqlServer #Commands #Queries #LearnAWS #AWSCommunityBuilder #AWSCertified #Backup #Snapshot
#AWS,#LearnAWSforFree,#Free,#FreeResources,#2022,#AWSCommunityBuilderProgram,#Community,#Server,#EC2,#Instance,#EC2_Instance,#Demo,#Commands,
#LearnAWS,#AWSCommunityBuilder,#AWSCertified,#Automation,#SnapshotCreation,#AWSEC2Instance,#CompleteTutorial,#LiveDemo,#ProjectBasedLearning,
#ClearAWSInterview,#InterviewPreparation,#OnlineLearning,#SelfThoughtLearner,#Opportunity,#DevOps,#ITCareer,#DevOpsRoles,#Jobs,#India,#AWSDevops,
#Happy,#AWSAccount,#TrainingOnAWS,#CloudComputing,#Tutorial,#AWSDemo,#FlaskAppOnAWSEC2 - Věda a technologie
I have scheduled a meeting with @amonkincloud. We solved the problem in like 5 minutes. I want to thank him for helping me out. We had a nice chat, and he is one of the sweetest people I've met. I am so glad to schedule and meet up online. I am really happy to subscribe. Much love from Turkey. Take care.
Glad that we could fix your issues @hageshiku4262 brother. Thank you for your kind words. All the best bro ❤️
absolutely phenomenal. it all works. thanks!
Thank you 🙏
Nicely explained. Very useful video.
Glad that it helped frank!
Excellent tutorial. I will try it out.
Glad that it helped you
Hi, thanks for taking the time to show this method of deploying a Flask application. I'd just figured out how to connect AWS EC2 with GitHub and was expecting something more direct. Is Flask meant to be a developer tool and not meant for production? The Werkzug redirect and Nginx reverse proxy makes me curious to better understand the typical server deployment of an app.
Sir....all of ur videos explanation is well, but with simple hello world, we can't get excitement, plsss do with some complex code (real-time application)....Means output should be some Content (website or useful web-app), not a single echo command....plsss
thank you for the great tutorial sir ! :)
Thank you
Keep supporting
Great explanation. Thank you
Glad that it helped you
Worked fine for me .. thanks
Glad that it worked
Keep supporting 🙏
Thank you so much sir it helped me really lot
Thank you 🙏
Keep supporting
great video
Glad that it helped you manoj sharma!
Nice explanation.....sir
Glad that it helped you Mohammad!
Thank you Very much!!!
Thank you 🙏
I hope this message finds you in good health and spirits. I wanted to express my gratitude for the valuable knowledge you have shared, which I have benefited greatly from. I have been following your work and have been impressed by it. I couldn't find a way to thank you enough except by inviting you to explore Islam. I hope to be of benefit to you as you have been to me.
I invite you to join us in understanding Islam better, whether through conversations, attending events at the mosque, or simply exploring resources that delve into the core beliefs and practices of this faith.
Thank you for your kind words.
I am wondering how tech contents on Cloud and DevOps is related to any religion? I belong to “Human” religion 😁
@@amonkincloud both are benefiting human life tech and religion giving you the luxury of yourself and saving time by learning from previous mistakes
the human religion is to die be aware.
When i will add new api and how to choose custom port,? Cause on http only 80 port is selected can't edit it
how can I write to work with other router... I added it but it won't work
hey there! im totally new to cloud so every small item there freaks me out. I got a very small question. So i got a small website (my portfolio) running flask in backend and no heavy task in general, just basic routing. according to the free tier of AWS, it provides us 750 hours free per month for a year. so if i run only one instance of ec2, it'll be entirely free for the whole year. this example you're showing is running only 1 instance right? (this might be a very dumb question, but again i have no clue about cloud, sorry).
thanks in advance
Yes in this video we have used only one instance.
I did everything exactly as you video explains but i am not able access it via my public i p!
Please check all the configuration s
Sir can you please make a video on complete aws network services in details.
Hi Rahul, thanks for reaching out. The request has been noted and you might expect a video on this soon.
Thanks
A Monk in Cloud
Hi man thanks for uploading this video. My question is everything work fine but at the end when I paste IP to my browser It shows no response. can you please tell me how can I resolve this issue? my browser takes lot of time and at the end it shows : This site can’t be reached
Check if you have allowed the port number on the security group
@amonkincloud, Thank you for such a useful video. I am facing an issue. When I try to run a flask app that renders a html page as response (uses render_template function of flask package to respond), it does not display the result of the html page. Instead, it displays the contents of the html source code as it is when I curl. The flask app is working fine when I run it in my local. Can you please help me identify where am I going wrong? Thank you!
Thank you.
To check this we need to check the complete details along with the configuration
Thanks for this wonderful video...
In my case I have python based application running on the ip address and port range 8000, so when I want to host through route 53 I am getting problem because there is only ip address acceptable .... Please give me suggestion how to to i host that application
Thank you 🙏
I failed to understand the exact usecase of yours
Hi , thanks for the tutorial, but how can i make a application load balancer point towards this, so i created a alb point to this it is hitting the nginx server but i am getting 404 but when i curl it gave me the response , bit alb its 404 i can see a nginx 404 page, dont where its wrong
This is a good question. Would be great if the creator response to such questions instead of just liking it.
@Nature-mh2rh cannot answer without checking all the configurations.
Bro pls reply, how to add a custom domain? Can I just add a dns A record and point it to the ip, but the public ip changes everytime, I restart, do I need to point it to the private ip? or something else..
You can add an EIP and have an A record for it
Can I easily port from one instance to other? Which instance is good for a website with 100,000 traffic hits per month
Information regarding this can be found in the documentation published by AWS. You can find the details below 👇
aws.amazon.com/ec2/pricing/
Hmmm I'm getting a This site can’t be reached when I try to access the public IP. When connected to the ec2, I can hit local host and it returns hello world. What do you think could be going on?
Cannot point out what is the exact issue. We can troubleshoot this over a call if you okay.
Try connect via http instead of https
Hey,
I am getting "curl: (7) Failed to connect to localhost port ' error after creating the service and running sudo systemctl commands.
Do you know what could be the reason? The gunicorn -b localhost:8080 app:app command is working fine
Hey Yatharth, haven’t faced this issue before.
I am facing same issue
In that file after
sudo nano /etc/systemd/system/.service
Don't forget to replace "helloworld" with
Please were you able to resolve this? If so, how did you do it?
If someone is facing this, check the service file for typos as well.
Hi how can i make other endpoint also working, only / root endpoint is working but any other endpoint is not working like /api/isconnected any help please? I can curl the other endpoint but cannot hit it from the ec2 public io
Im facing same issue. How to solve it?
well i need a solution not a like
@amandas2234 firstly I don’t have the visibility as to how you have configured it and not sure where you are facing this issue
@@amonkincloud when the route is / its showing hello world but when im changing it to a different endpoint to listen to API calls . It is showing 404 error
@@amandas2234 I am having the same issue and could not find a solution for it
Any idea why I can see my website using the public IPV4 DNS but not using the public ip ?
Need to be checked. AFIK public Ip and DNS both would be present
hi sir your tutorial is very helpful but when i paste my URL in the browser it doesnt seem to work i suspect i it has something to do with Nginx configurations because the output for the other steps were similar. could you please tell me how to troubleshoot this. thank youu
quick update, i doublechecked my firewall and enabled a port and it works but it cant
route to other pages in my application
Glad that it helped
@@amonkincloud could you assist on routing to other pages sir it would be really helpful because its for my project?
This all works fine, but if i update the code, the server still responses according to old code. How do i update that?
Remove the entire content and then try to add the new code
@@amonkincloud what if i m testing things out...removing whole thing is too time consuming. No other way?
Can this deployment be done on windows instance instead of a unix one?
Yes you can
I have a question i have learned aws and azure ...so which devops is easy to work azure devops or AWS devops for better career in future
Hi Mohammad thanks for reaching out. If you ask me I will first learn the following tools -Terraform, Jenkins, Docker, K8s and Grafana. After learning these tools I would pick any one of the cloud platforms and learn native DevOps tools (eg: CodeBuild, CodeCommit, CodeDeploy in case of AWS and Azure DevOps in case of Azure). I am following this order. Views might be different.
Hope this helps
Thanks,
A Monk in Cloud ☁️
hi, thanx for this helpful video..
my homepage is working but other pages are not accessible.
getting Error - 404 Not Found nginx/1.18.0 (Ubuntu)
same man, did you find any solution?
just remove line "try_files $uri $uri/ =404;"
Showing Error when hitting curl 3000 "curl: (7) Failed to connect to localhost port 3000 after 0 ms: Couldn't connect to server"
Please check the connection
encountered the same issue with AWS Linux 2023, what I did was manually run gunicorn on separate screen.
it worked but only first page is showing in my case
Glad that it helped you. It is just an example to show how to host flask applications. You can build on top of this.
Thanks,
A Monk in Cloud ☁️
Whilst using this method, I ould only access "/" main route but I couldn't access other routes in the application for example "/api/members". How can one solve this problem?
This is just a demo app. You need to check it further depending on your usecase
@@amonkincloud it's a general cade from the various tests I've had. It typically should not occur.
Secondly, I think it's also an opportunity for you to showcase this problem on your CZcams channel.
@@sunnypepple6571 Hey brother did you found solution to that problem?
I am getting bad gateway
nginx server
Check your Nginx configuration
what about requirements.txt file
You can add that as well. This was just an example
@@amonkincloud then why are you showing such simple examples,no use of that
I have hard time running my task definition would you be interested to help me via discord?
Sure I can help in the cloud side. If you are okay, go ahead and book a slot here: topmate.io/a_monk_in_cloud
Monk I would be so happy, I am at my intership and I managed a lot but the task keeps stopping man
Sure
@@amonkincloud , will you come now to live video call for 30 min ? I am in Turkey/Istanbul.
@@amonkincloud I have booked.