How to create an EC2 instance on AWS
Step 1: Log in to the AWS Management Console
Log in using your AWS account credentials.
Step 2: Navigate to EC2 Dashboard
Search for EC2 service on the search bar and Click on EC2
Step 3: Launch an Instance
Click on Launch Instances. 🗃
Fill in all details
Instance Name: ec2-test
Select Amazon Machine Image (AMI): Ubuntu
Select Architecture: 64-bit(x86)
Choose an Instance Type: t2-micro (free tier)
Key pair (login)
Create a new key pair and download the .pem
file, it will help you to connect with the instance in the next step.🔐
Key pair name: ec2-test-key.
Choose a key format according to your requirement
Please select the newly created key from the drop-down options.
Network Setting and Configure Storage are set by default for now we can change as per our requirement.
Note: You can check HTTPS (port 443) and HTTP (port 80)
It enables ports. 🥅
Now Click on Launch Instance
It will take a few seconds to launch the instance ☕
How to connect with Instance 🤝🏻
Remember to click on the Connect button.
You will discover four different ways to connect in this section.
EC2 Instance Connect
Session Manager
SSH client
EC2 serial console
Now you are connected to your server
Resources:
AWS Doc
What is EC2 Instance Type
What is AMI
Subscribe to my newsletter
Read articles from Harshit Paneri directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Harshit Paneri
Harshit Paneri
🚀 Hi, I'm Harshit, a versatile Full Stack Developer with a passion for Software Development and DevOps. With a background in Computer Science Engineering, I've honed my skills to not just build robust APIs but also ensure they run seamlessly in production. From coding the backend to setting up CI/CD pipelines, I manage the entire lifecycle of applications—developing, deploying, and scaling them as needed. Whether it's integrating cutting-edge technologies, optimizing performance, or setting up monitoring and alerting for smooth operations, I make sure everything runs like a well-oiled machine. In short, I’m the go-to person for creating solutions that are reliable, scalable, and production-ready.