How to Launch an EC2 Instance on AWS — Step-by-Step for Beginners


Amazon EC2 (Elastic Compute Cloud) is one of the most popular services offered by AWS. It lets you rent virtual servers (instances) in the cloud to run applications and workloads. Whether you're testing something or deploying a full-blown app, EC2 gives you flexibility and scalability.
1. Login to AWS console with credentials.
2. Search for EC2 in the "Find Services" bar.
3. Click EC2 to open the EC2 Dashboard.
Click on "Launch Instance".
You'll be taken to the "Launch an instance" configuration page.
Under Name and tags, give your instance a name, e.g., mywebserver
Select an any one AMI (this is your instance's OS). Common choices include:
Amazon Linux 2
Ubuntu Server
Windows Server and more
Under Key pair (login):
Create a new key pair or select an existing one.
Choose .pem format and download the key file.
Example: mykeypari.pem — store it secure
Make it default reaming security group (SG) and configuration storage because we are using default one’s created and managed by AWS.
Scroll to the bottom and click Launch instance
Click View instances to see your new EC2 instance.
Select the instance and click Connect to your instance
Choose SSH client and follow the steps
Open your terminal in windows or mac or linux.
Copy the above example ssh -i path and paste in your terminal.
Yay ! successful connected with Ec2 instance in AWS
Subscribe to my newsletter
Read articles from Kiran Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
