DEV Community

Cover image for Launching an EC2 Instance
Simran Rajoriya
Simran Rajoriya

Posted on

Launching an EC2 Instance

What is Amazon EC2?
Amazon EC2 stands for Elastic Compute Cloud.It is a service provided by AWS that allows users to create virtual servers in the cloud.

Steps to Launch an EC2 Instance
Step 1: Login to AWS Console

  1. First, login to the AWS Management Console.
  2. After login, go to the search bar and type EC2.
  3. Click on EC2 service to open the dashboard.

Step 2: Launch Instance

1.Inside the EC2 dashboard, click on Launch Instance.
2.This will start the process of creating a new virtual

server.

Step 3: Choose Instance Type

1.Next step is selecting the instance type.
2.t2.micro or t3.micro
(These are free-tier eligible instances.)

Step 4: Configure Key Pair

1.Now you need to create a key pair.
2.This key pair is used to securely connect to your EC2 instance.
(Download the key pair file and keep it safe.)

Step 5: Configure Security Group

In this step, you allow network access.
1.SSH (port 22) for connecting to server
2.HTTP (port 80) if you want to host a website

Step 6: Launch the Instance

Now click on Launch Instance.
(After a few seconds your EC2 instance will start running.)

Step 7: Connect to the Instance

Go to the EC2 dashboard and select your instance.
Click Connect and follow the instructions to connect using SSH.

Now your cloud server is ready to use.

Top comments (0)