Answer the question
In order to leave comments, you need to log in
How to deploy Flask applications on the server?
Hello.
I'm still learning and trying to run my first Flask application on an Amazon instance. For now, I want to use the built-in web server. Everything works locally. I go through the terminal to the instance, run the script and go to localhost:5000 through curl.
And how to make this application accessible from the outside? (To check, I started Nginx and the start page is available).
I know that Flask recommends using Elastic Beanstalk, but is it possible to do without it? Because it is not clear whether this service is free
PS
Next, I wanted to run the same application in a docker container, or rather, I already launched it in a container and everything works locally, but how to make it available further is not clear.
Answer the question
In order to leave comments, you need to log in
Good night) Beanstalk is just a platform that also runs an EC2 instance, so it makes no difference. If you want a container, then you are in AWS ECS
As for accessibility from the outside - EC2 must be on a public subnet, it must be given a public ip and port 80 for http must be open in the security group
The entire list of FreeTier limits
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question