DEV Community

Cover image for Creating an EC2 Instance
Ogundu Ahamefule
Ogundu Ahamefule

Posted on

Creating an EC2 Instance

An EC2 instance is Amazon Web Services’ (AWS) version of a virtual machine (VM). It’s a resizable compute resource in the cloud that behaves like a traditional VM but is hosted and managed on AWS infrastructure.


🖥️ EC2 Instance vs. Virtual Machine

Feature EC2 Instance (AWS) Traditional Virtual Machine
Definition A cloud-based compute resource provided by AWS. A software-based emulation of a physical computer running on local hardware or private cloud.
Hosting Runs on AWS’s global infrastructure (data centers). Runs on your own hardware or a hypervisor (like VMware, VirtualBox).
Scalability Instantly scalable up or down; pay-as-you-go. Limited by local hardware capacity; scaling requires manual upgrades.
Management AWS manages hardware, networking, and availability zones. You manage the physical server and hypervisor.
Use Cases Web hosting, app servers, machine learning, analytics, enterprise workloads. Development environments, desktop virtualization, on-premises servers.

1 log in to the AWS Management console
. Go to the AWS Console
. Navigate to the EC2 Dashboard

2 click launch instance

 |

3 Give it a name, in this article we are going to name it Ahamserver

4 click to add additional tags

5 Scroll down to where you have the application and OS image and select windows

6 Create down and select key pair

7 Give the key pair a name and click create key pair

8 Scroll down and tick HTTP

9 Click Launch Instance

10 Successfully initiated launch of instance will be displayed on screen

11 Click connect to instance

12 Click RDP Client

13 Scroll down and click get password
14 click upload private key files and select key pair you downloaded

15 scroll down and click Decrypt password

16 Copy password to your clipboard it will be needed and download remote desktop file to connect

17 Click the desktop file downloaded from the top right corner of the screen and click connect

18 Paste the password you have already copied to your clipboard and click connect

19 CLICK OK You have just Created and EC2 INSTANCE IN AWS

Top comments (0)