re: What is AWS? A Guide for Beginners. VIEW POST

re: I have needed something like this for a long time to clear the confusion. It's beginning to make sense but still with some confusion. Let's say i h...

Elastic Beanstalk vs Lightsail

The easiest way to deploy a web-app on AWS such as a Flask app is to use Elastic Beanstalk. Elastic Beanstalk was created to compete with Heroku. You just choose your runtime environment (Python) upload your code and it runs.

Elastic Beanstalk under the hood is a CloudFormation template which will provision multiple AWS services such as Load Balancers, Auto Scaling Groups, EC2 instances, RDS and etc.

Once you get comfortable with the different AWS services you can take the training wheels off so to speak and just provision these resources directly.

Lightsail was created to compete with Godaddy in the way it's easy to set up a wordpress. In my experience, Lighsail is troublesome as I find the GUI becomes out of sync with resources and the only way I've fixed it was to use paid AWS support. So to me, Lighsail is more trouble than its worth.

Lighsail and Elastic Beanstalk are very similar in that the are glorified GUIs to setup AWS resources for you.

The Monolith

You could just launch a single EC2 instance and put everything on it, and this is a good way to be cost effective. AWS does give us free tier access to many services which can lessen the adoption of using multiple services. S3 is a cost I never really think about because it takes terabytes of data before I start seeing cents. Also, there is no cost for traffic coming into AWS meaning uploads don't cost you anything.

So if you want to be cost effective you would provision a single EC2 instance running the Flask app and the database, S3 is not a cost you need to worry about so you can just store files there with little worry.

If you really want to save money you should be looking at serverless architecture. You can take your flask code and turn them into python lambda functions and then use MySQL Aurora Serverless to have this highly available and durable application that costs nothing or pennies.

I have a fundamentals course

I cover many fundamental AWS services and I go deep into how pricing works and how to keep costs down in my fundamentals course.

If anyone is interested here's the deal:
Get 15$ OFF Certified Cloud Practioner for 3 Month Access


Thanks for the detailed response.

code of conduct - report abuse