Home/Server & Website Managed Operations/How to Create an AWS EC2 Instance
Server & Website Managed Operations

How to Create an AWS EC2 Instance

EC2 (Elastic Compute Cloud) is one of the services provided by Amazon Web Services.

This guide explains how to create an AWS EC2 instance (using Linux as an example) and how to log in to it.

Creating and Logging into an EC2 Instance

Step 1: Log in to the AWS Console

Open the official website at Amazon Web Services Management Console.

Enter your account credentials.

aws-login

Step 2: Navigate to EC2 Services

aws-ec2-services

Step 3: Launch an Instance

aws-ec2-launch-instance

Step 4: Choose an Operating System (Example: RedHat)

aws-ec2-choose-type

Step 5: Select Instance Configuration (Example: Free Tier)

t2-micro

Step 6: Configure Instance Details (Defaults are fine unless specified otherwise)

aws-ec2-configure-instance-details

Number of instances — Number of instances to create

Network — VPC configuration

Subnet — Subnet configuration

Public IP — Whether to assign a public IP

Shutdown behavior — Shutdown action selection

Step 7: Add System Disk and Other Storage

By default, EC2 does not come with a system disk pre-configured; users must specify the system disk size. You can also add data disks here.

aws-ec2-add-storage

Step 8: Enter Instance Tags (Optional)

aws-ec2-tag-instance

Step 9: Select Security Group (You can use the default or create a new one; this guide uses the default)

aws-ec2-configure-security-group

Step 10: Review Instance Launch Settings

aws-ec2-review-instance-launch

Step 11: Create or Select a Key Pair (Crucial Step)

If you do not have an existing key pair, you must download the newly created one before launching the instance. Otherwise, you will not be able to log in to the instance after creation.

aws-ec2-select-an-existing-keypair

The following screen indicates that your instance has been successfully created.

aws-ec2-launch-status

Let’s check our instance. You can see information such as the instance ID. Note that this instance does not have a static IP; the system assigns a dynamic IP that changes upon restart. Therefore, we need to create an Elastic IP for this instance. This guide will not cover that in detail; future articles will explain how to create a public IP. For now, we will use the assigned public IP to log in.

aws-ec2-instances

I am using Tera Term as my tool. Due to work requirements, I installed the Japanese version. Enter the assigned public IP: 54.92.41.11

login-of-teraterm

You cannot log in as root; you must use the ‘ec2-user’ account.

The key file is the one downloaded when creating the key pair. Click “OK” to log in successfully.

Now you can use this free Amazon cloud server to create a personal website.

If you are using CentOS, you can log in directly as the root user.

FREE CHECKUP

Free server checkup

We will send a problem checklist and remediation advice within one business day — no obligation to engage.

135 410 16684
Weekdays Mon – Fri 10:00 – 22:00 (UTC+8) · 7×24 emergency response
Call now
CONTACT

Contact Us

How can we help?

* Required