Elastic Compute Cloud (EC2) (original) (raw)

Last Updated : 9 Jun, 2026

EC2 (Elastic Compute Cloud) is a cloud computing service provided by Amazon Web Services (AWS). EC2 is an on-demand computing service on the AWS cloud platform called instances. It allows users to rent virtual servers to run applications in the cloud. You pay only for what you use.

The name itself explains its core value:

Amazon EC2 is one of the most widely used AWS services because it provides scalable and secure virtual servers in the cloud. Organizations use EC2 to host websites, deploy applications, run databases, and support enterprise workloads without investing in physical hardware.

Features of EC2

The following are the features of AWS EC2:

1. Functionality

2. Operating Systems

2056958280

**3. Software

4. Scalability and Reliability

Core Components of EC2 Instance

Before launching an instance, you need to understand its five fundamental building blocks.

**1. Amazon Machine Image (AMI)

**2. Instance Types

Instance types are the hardware profiles of your virtual server. AWS offers a vast array of instance types optimized for different tasks, grouped into families:

Family Purpose Example Use Case
T General Purpose (Burstable) Small websites, development
M Balanced Compute & Memory Enterprise applications
C Compute Optimized Batch processing, analytics
R Memory Optimized Databases, caching
G GPU Optimized AI/ML, graphics rendering

**3. Elastic Block Store (EBS) Volumes

**4. Security Groups

ASecurity Groupsacts as a virtual firewall for your EC2 instance, controlling all inbound and outbound traffic. You define rules that specify which protocols (e.g., SSH, HTTP), ports (e.g., 22, 80), and IP address ranges are allowed to send traffic to or receive traffic from your instance.

**5. Key Pairs

A Key Pairs consisting of a public key and a private key, is the set of security credentials used to prove your identity when connecting to a Linux EC2 instance. AWS stores the public key, and you are responsible for securely storing the private key file (.pem). You will use this private key to SSH into your instance.

Working of AWS EC2

Instead of buying and managing your own servers, EC2 gives you a virtual machine, where you can run websites, apps, or even big data tasks.

The following figure shows the EC2-Instance which is deployed in VPC (Virtual Private Cloud).

2056958281

Launching an Amazon EC2 Linux Instance

**Step 1: First, log in to your AWS account. Once you are directed to the AWS Management Console, click on Services from the navigation menu. In the search bar, type EC2 and select EC2 from the list of available services to open the EC2 dashboard.

Screenshot-2026-05-30-123006

**Step 2: Afterward, you will be redirected to the EC2 console.

Screenshot-2026-05-30-123204

**Note: For the detailed step-by-step process of launching and configuring an Amazon EC2 instance, refer to the dedicated EC2 Instance Creation tutorial.

Benefits

EC2 Pricing Options