DEV Community

Cover image for Steps to Launch an EC2 Instance in AWS
Precious Uchechukwu Nwafor
Precious Uchechukwu Nwafor

Posted on • Edited on

Steps to Launch an EC2 Instance in AWS

Cloud infrastructure can feel abstract until you launch your first server.

In the world of cloud computing, servers arenโ€™t racks of hardware sitting in a data center. They are on-demand, scalable, and provisioned in minutes.

On Amazon Web Services (AWS), this compute capability is delivered through Amazon Elastic Compute Cloud (EC2). Which is a service that lets you spin up virtual servers whenever you need them. If you are coming from Microsoft Azure, you will recognize this concept as a Virtual Machine. Different name, same fundamental idea: rentable compute power in the cloud.

In this guide, we will walk step-by-step through creating your own EC2 instance from configuration to launch.

Letโ€™s build our EC2 instance. ๐Ÿš€

STEP 1 : Create or login AWS Management Console account.

Access console

STEP 2 : Proceed to navigate to the Search bar icon above. Type EC2 and click enter. This opens the EC2 dashboard.

Search bar

STEP 3 : Select Launch Instance on the dashboard

Select launch instance

STEP 4 : Add a name tag and choose your operating system .

Adding Identifier

STEP 5 : Proceed to create a new key pair (optional). Give a unique name and create new key. This automatically downloads as a file

new key pair

unique identifier

Key pair file

STEP 6 : Proceed to Launch instance.

Launch in progress

STEP 7 : We have created the EC2. Proceed to connect to your instance

connecting to instance

STEP 8 : We will use the cloud share that Amazon is providing and connect directly. Click connect

Cloud share

STEP 9: Wait for connection to be established. Congratulations, we have created our Ubuntu 24.04.3 LTS (GNU/Linux 6.14.0-1018-aws x86_64)

Establishing connection

Welcome

Deployment

STEP 10: The EC2 connected and ready for use.

We can go further by entering the command sudo su at the prompt and press Enter to gain administrative access. Next, type sudo apt update and press Enter again. This will refresh your package lists and display the current status of your applications on the EC2 instance.

Note: If the terminal becomes unresponsive, first click directly inside the black window to ensure it has "focus." If it still won't record your commands, refresh your browser to reset the session. This can be due to lost focus or connection time out

Update command description
command
command
running

MISSION SUCCESSFUL!

Top comments (2)

Collapse
 
fredrick_chukwuma_13220c9 profile image
Fredrick Chukwuma

Good job ๐Ÿ‘๐Ÿพ

Collapse
 
precious_nwafor profile image
Precious Uchechukwu Nwafor

Thank you so much, Fredrick