Amazon EC2 Instance Installation.

Published: (December 14, 2025 at 09:14 PM EST)
3 min read
Source: Dev.to

Source: Dev.to

Cover image for Amazon EC2 Instance Installation.

What EC2 Actually Gives You

Amazon EC2 provides virtual machines called instances.

Compute

  • The virtual machine itself (instance type) which defines CPU, memory, and storage.

Storage

  • Disks attached to the instance, typically Amazon EBS for the operating system and data.

Networking

  • Connectivity components such as VPC, subnets, security groups, and IP addresses.

Each instance can have:

  • CPU power
  • Memory (RAM)
  • Storage
  • Network

Benefits of Using Amazon EC2

  • Fast to start – launch a server in minutes, no hardware procurement.
  • Pay only for what you use – billed by the second or hour; stop paying when the instance is off.
  • Scales easily – resize or add instances instantly.
  • Very reliable – runs in AWS data centers with built‑in redundancy and high uptime.
  • Full control – choose OS, CPU, memory, storage, and network settings.
  • Secure by default – security groups, firewalls, IAM, and encryption are integrated.
  • Works with everything – integrates with databases, load balancers, storage, and monitoring tools.
  • Good for any workload – web apps, databases, backups, testing, AI, enterprise systems.

EC2 lets you run servers fast, safely, and only pay when you need them.

Installation Steps

Step 1 – Create an AWS Account

Sign up for an AWS account if you don’t already have one.

Step 2 – Log in to the AWS Console

Visit the AWS Management Console.

Step 3 – Open the EC2 Service

In the search bar, type ec2 and press Enter.

EC2 search bar

Step 4 – Launch an Instance

Click Launch Instance.

Launch Instance button

Step 5 – Provide Basic Details

Enter a name and optional tags for the instance.

Name and tags

Step 6 – Choose an AMI

Under Application and OS Images → Quick Start, select the Ubuntu operating system.

Select Ubuntu AMI

Step 7 – Create a Key Pair

Create a new key pair (e.g., MYLABKEY). This key will be used to generate an encrypted password for login.

Step 8 – Review and Launch

Keep the remaining settings at their defaults and click Launch.

Launch configuration

Your instance will be created in less than five minutes.

Step 9 – View the Instance

Click on the instance ID to open the Overview page and see the newly deployed instance.

Instance overview

Step 10 – Connect to the Ubuntu Server

Use the Connect button to obtain the SSH command. Example:

ssh -i /path/to/MYLABKEY.pem ubuntu@

Follow the on‑screen instructions to retrieve the encrypted password (if using a Windows instance) or directly SSH into the Ubuntu instance.

You now have a running Amazon EC2 Ubuntu instance ready for further configuration and use.

Back to Blog

Related posts

Read more »

Day 16.Create IAM User

!Cover image for Day 16.Create IAM Userhttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads...

Getting Started with AWS CloudFormation

!Cover image for Getting Started with AWS CloudFormationhttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F...

Creating an EC2 Instance

Steps 1. Search bar, type EC2 and choose the first option. 2. Click Launch Instance. 3. In the Launch Instance Environment, enter a name in the name bar and cl...