Amazon EC2 Instance Types (original) (raw)

Last Updated : 29 May, 2026

EC2 stands for Elastic Compute Cloud is a service from Amazon Web Services (AWS). EC2 is an on-demand computing service on the AWS cloud platform called instances. It lets you rent virtual computers to run your applications. You pay only for what you use.

EC2 Instance Naming convention

Instance type names like "m6a.4xlarge" follow a logical pattern. Breaking down "m6a.4xlarge":

**Note: Some instances include an additional capabilities letter, such as d for local NVMe SSD storage (e.g., m5d) or n for enhanced networking (e.g., m5n).

EC2 Instance Type Categories

AWS groups EC2 instances into several families based on target use cases.

Aws-EC2-instance-types

**Instance Category **Key Features **Ideal Use Cases **Common Examples
**General Purpose Balanced **vCPU, memory, and network resources. Web servers, code repositories, and dev/test environments. **T3, T4g, M5, M6i
**Compute Optimized High-performance processors; best price/performance for compute-bound tasks. Batch processing, media transcoding, high-traffic web servers, and gaming. **C5, C6g, C7g
**Memory Optimized Designed for fast performance for workloads that process large data sets in memory. In-memory databases (Redis/Memcached), SAP HANA, and real-time big data analytics. **R5, R6g, X2gd, Z1d
**Storage Optimized Optimized for high, sequential read/write access to very large data sets on local storage. NoSQL databases (Cassandra, MongoDB), data warehousing, and log processing. **I3, I4i, D2, H1
**Accelerated Computing Use hardware accelerators (GPUs, FPGAs, or TPUs) for parallel processing. Deep Learning, 3D rendering, genomics research, and financial modeling. **P4, G5, F1, Trn1

**1. General Purpose Instances

It provide a balanced mix of compute, memory, and networking, suitable for workloads that don't require specialized hardware but need reliable overall performance.

**Key Features

**Families

**Use Cases

**2. Compute Optimized Instances

It designed for tasks that require significant processing power, prioritizing CPU performance over memory.

**Key Features

**Use Cases

**Families

**3. Memory Optimized Instances

It deliver a large amount of RAM relative to CPU, designed for applications that process large datasets entirely in memory.

**Key Features

**Use Cases

**Families

**4. Storage Optimized Instances

It deliver high-throughput, low-latency local storage, designed for workloads with heavy read/write access to large datasets.

**Key Features

**Use Cases

**Families

**5. Accelerated Computing Instances

It include specialized hardware such as GPUs or FPGAs to perform specific tasks far faster than standard CPUs.

**Key Features

**Use Cases

**Families

Choosing an Instance Type

Start by identifying where your application is actually constrained — CPU, memory or disk — then work from there:

  1. **Start with General Purpose. An M or T family instance is a balanced, low-risk starting point for most new applications.
  2. **Monitor with CloudWatch. Track CPU Utilization, memory usage, and EBS disk I/O under real load.
  3. **Move to the right family based on what you observe. Shift to Compute Optimized (C) if CPU runs consistently above 80–90%, Memory Optimized (R) if RAM is exhausted, or Storage Optimized (I) if disk I/O is the bottleneck.

EC2 Pricing Models

Choosing an instance type is a separate decision from choosing how you pay for it.

**Note: You can estimate costs across all pricing models using the AWS Pricing Calculator.