You can create Amazon EC2 instances in a few minutes once you know what each wizard screen does, so this guide breaks down every choice. For example, the free tier settings are highlighted so the whole lab costs nothing.
An Amazon EC2 instance is a virtual server in the cloud, and launching one is the classic first exercise in learning AWS. This guide walks through the process in the AWS Management Console, from choosing a machine image to connecting to your running server.
dns LAB TOPOLOGY & PREREQUISITES
# example values used while writing and testing this guide
AWS ACCOUNT
LAB ENVIRONMENT
VALIDATION
01constructionCreate Amazon EC2 instances: Before You Start
You need an AWS account; if you do not have one yet, see How to Create a Free Amazon AWS Account. The t2.micro and t3.micro instance types are covered by the 12-month Free Tier, so your first server can be free.
02downloadStep 1: Open the EC2 Console
Sign in to the AWS Management Console, choose a Region near you from the top-right menu, then open the EC2 service and click Launch Instance. In short, to create Amazon EC2 instances reliably, follow the order above and verify each step.
03usbStep 2: Choose an AMI
An AMI (Amazon Machine Image) is the template for your server’s operating system. Pick Amazon Linux or Ubuntu for a Linux server, or a Windows Server AMI if you want a Windows machine (Windows instances are not free tier eligible).
04terminalStep 3: Choose an Instance Type
The instance type defines CPU, memory and network capacity. For learning, choose t2.micro or t3.micro — 1 vCPU and 1 GB of RAM, free within the Free Tier.
05settings_ethernetStep 4: Create or Select a Key Pair
A key pair is the private key you use to log in to the instance. Create a new one, give it a name, and download the .pem file. Keep it safe: without it you cannot connect to a Linux instance.
06languageStep 5: Configure the Security Group
The security group is the instance’s firewall. For a web server, allow HTTP (port 80) and SSH (port 22) from anywhere; for a Windows instance allow RDP (port 3389). You can restrict SSH to your own IP address for better security.
07dnsStep 6: Launch and Connect
Review the summary and click Launch. After a minute or two the instance state shows running. Copy its public IP address and connect:
- Linux (SSH):
ssh -i your-key.pem ec2-user@<public-ip>(useubuntu@for Ubuntu AMIs) - Windows (RDP): select the instance, choose Connect, and use the generated password with Remote Desktop
08lanStop or Terminate?
When you finish practicing, remember the difference: Stop shuts the instance down but keeps the disk (and small EBS charges continue), while Terminate deletes the instance and its disk permanently. A stopped instance can be restarted; a terminated one cannot. Always terminate instances you no longer need.
In short, to create Amazon EC2 instances reliably, follow the order above and verify each step.
Q&AquizFrequently Asked Questions About Creating Amazon EC2 Instances
Is the EC2 free tier really enough for practice?
Yes. The t2.micro or t3.micro instance runs free for 750 hours a month, which covers a whole month of learning. Just remember to stop or terminate it when you finish.
What does the key pair do?
The key pair proves your identity when you connect over SSH. If you lose the private key file, you cannot sign in to a Linux instance, so store it carefully.
Why can’t I reach my instance from the browser?
Usually the security group blocks the port. For example, a web server needs port 80 open, and RDP needs port 3389. Check the inbound rules first.
Should I stop or terminate it?
Stop keeps the disk for later and still costs a few cents per hour. Terminate deletes everything, so use it when you are done practicing. If you want repeatable practice, follow the free account guide and rebuild quickly.
EXTopen_in_newExternal Resources
These official guides go deeper on creating Amazon EC2 instances.
Related Content
- How to Create a Free Amazon AWS Account
- Backup and Restore Amazon EC2 Instances with AWS Backup
- Hosting a Static Website in an Amazon S3 Bucket
- AWS Service Categories Explained
Hosting a Static Website in Amazon S3 Bucket
Finish this lab, then continue down the track. Each guide builds on the one before it.