Amazon EC2 (Elastic Compute Cloud) is the backbone of cloud computing on AWS. Whether you’re hosting a website, running a backend server, or experimenting with DevOps, launching your first EC2 instance is a fundamental skill every developer should have.
In this step-by-step guide, we’ll walk through the entire process of creating an AWS EC2 instance from scratch in 2026 — from logging into your AWS account to connecting to your server via SSH. This guide is beginner-friendly and uses AWS Free Tier eligible options wherever possible, so you can follow along without incurring charges.
In this guide, you’ll learn how to:
Let’s get started.
Head over to aws.amazon.com and log in with your AWS account credentials. If you don’t have an account yet, you can sign up for one — AWS offers a generous Free Tier for new users, which is perfect for learning and testing.
Once you’re logged in, take a moment to select the AWS Region you want to work in. This is typically shown in the top-right corner of the AWS Management Console. Choose a region that’s closest to you or your target audience for the best latency and performance.
Now that you’re in the AWS Console, it’s time to navigate to the EC2 dashboard.
This is the most important step, where you’ll define exactly what kind of server you want.
Give your instance a clear, descriptive name (e.g., my-first-ec2-server). This makes it easier to identify later, especially if you plan to run multiple instances.
Select Ubuntu as your Application and OS Image. Ubuntu is a popular choice for developers and is available under the AWS Free Tier. You'll see multiple Ubuntu versions listed — for this guide, we'll go with the latest version that's marked as Free Tier eligible.
Select t3.micro as your instance type. This is a Free Tier eligible option that provides enough compute power for testing, learning, and running lightweight applications.
Your key pair is what allows you to securely access your server via SSH, so this step is critical.
A security group acts as a virtual firewall for your instance, controlling inbound and outbound traffic.
AWS Free Tier includes up to 30 GB of EBS (Elastic Block Store) volume per month. Set your storage size based on your project’s requirements — the default (usually 8 GB) works fine for basic use cases, but you can increase it up to 30 GB and still stay within the Free Tier.
Once you’ve reviewed all your settings, click “Launch Instance” at the bottom of the page. AWS will take a few moments to provision your new server.
With your instance up and running, the next step is connecting to it. There are a couple of easy ways to do this.
Open your terminal (Command Prompt, PowerShell, or a Unix shell) and run the following command, replacing the path and IP address with your own:
ssh -i "C:\Users\YOUR_USERNAME\Downloads\your-key.pem" ubuntu@YOUR_PUBLIC_IP
If you prefer a graphical interface over the command line, Termius is a popular and beginner-friendly SSH client.
And that’s it — you’ve successfully launched and connected to your first AWS EC2 instance! From here, you can install a web server like Nginx or Apache, deploy your application, set up a database, or start experimenting with cloud infrastructure at your own pace.
Remember to keep an eye on your AWS Free Tier usage to avoid unexpected charges, and always store your key pair file somewhere safe — without it, you won’t be able to access your instance again.
In future guides, we’ll cover topics like setting up a domain name for your EC2 instance, installing an SSL certificate, and deploying a full web application. Stay tuned!

© 2026 StackForge. All rights reserved.