Step by step approach (including screenshots & code) on how to create an AWS EC2 instance and deploy your code for production purpose

What is the EC2 Instance?

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, and resizable compute capacity in the cloud. To make web-scale cloud computing easier for developers. Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction.

Index

1. How to configure an AWS account

2. Security Groups

3. SSH into the EC2 instance

4. Install different dependencies

5. Copy the Python Code to EC2

6. Run the Application on the server

Configure an AWS account

Creating a new account on AWS is quite easy.

→ Go to “https://signin.aws.amazon.com/.”

→ “Create a new AWS account.”

→ Enter the necessary information like first name, email address, password and you are done.

You get 12 Months of Free Tier Access to AWS Accounts including EC2 instance, Lambda, S3 buckets and Sagemaker. For more info on limits, you can check the following: aws.amazon.com/free.

#python #fastapi #flask #pip

Deploy Python Fast API using AWS EC2 Instance
12.30 GEEK