How to Create an EC2 Instance on AWS

Introduction
If you're just starting your AWS journey, launching your first EC2 instance is like a rite of passage. Today, I'll walk you through the entire process in plain English, just practical steps to get your virtual server up and running.
Step 1: Find Your Way to EC2
You first need to have your AWS account set up. If you do not have an AWS account yet, create one here. Afterwards, log in to your AWS Console and search for EC2 in the search bar. You'll land on the EC2 Dashboard, which is your command center for all things compute-related.
Step 2: Let's launch
Click that orange Launch instance button
Step 3: Give your server a name
First, name your instance something memorable like My Web Server or First-Test-Server. You can add tags later, but for now, a simple name works.
Step 4: Select your OS
This is where you decide what OS your virtual server will run. Amazon calls these AMIs (Amazon Machine Images), but think of them as pre-packaged server templates.
Step 5: Pick Your Instance Type
Now for the hardware specs. You'll see t3.micro pre-selected. You can select any instance type that supports your workloads.
Step 6: Create or Select a Key Pair
This is crucial! A key pair is like your house key. You need it to securely connect to your instance. Once you have created a key-pair, a private key will be created and saved on your host computer.
Step 7: Configure Network Settings
This is where you connect your server to the internet:
VPC: Leave as default (it's your virtual network)
Subnet: "No preference" is fine (AWS will pick an availability zone)
Auto-assign public IP: ENABLE THIS - it gives your instance a public address so you can actually reach it
Quick note: Public IPs may incur small charges if you exceed free tier limits
Step 8: Set Up Your Firewall (Security Groups)
You have two choices:
Create a new security group (simpler for beginners)
Select an existing one (if you've done this before)
We have selected web-sg from our list of available security groups. This virtual firewall will be used to safeguard our EC2 instance from unwanted traffic.
Step 9: You're Ready to Launch!
Before clicking that final launch button, double-check:
Instance has a name
AMI selected (Amazon Linux 2023 recommended)
Instance type is t3.micro (free tier!)
Key pair created and downloaded
Public IP enabled
Security group allows SSH access
Then click Launch Instance, and watch the magic happen.



