PROVIDER - Elastic Cloud Compute

AWS EC2

Amazon EC2 is officially "secure and resizable cloud compute", offering the broadest choice of processor, storage, networking, OS, and purchase model.

Cloud Server United States 2026.11.19
4.8pts

Service Overview

Verified 2026-11: aws.amazon.com/ec2/ returns HTTP 200 titled Secure and resizable cloud compute - Amazon EC2, citing the broadest choice of processor, storage, networking, OS, and purchase model.

AWS EC2 (Amazon Elastic Compute Cloud) is the compute product line of Amazon Web Services, launched in 2006 together with the AWS platform and filed under cloud servers in 16IDC. The core brand AWS (headquartered in Seattle, USA) currently runs 87 Availability Zones across 30 geographic regions, serves 245+ countries and territories, and operates 400+ edge locations for last-mile access; EC2 is the most fundamental layer on that infrastructure, offering 700+ instance types and 200+ companion cloud services.

Its position inside AWS matters far more than "a virtual machine". Most managed AWS services — RDS, ElastiCache, the worker nodes of EKS, the execution substrate under Lambda — ultimately rest on the same compute model, and EBS, elastic network interfaces, IAM roles, security groups and CloudWatch metrics are all modeled around the concept of an instance. Choosing EC2 therefore means choosing how the whole cloud abstracts resources: you accept a world where every machine, disk and network rule is declared explicitly, rather than a world where you state an objective and let the platform schedule. According to Synergy Research, AWS holds roughly 32% of the public cloud market, which is why this model has become the reference other vendors copy.

The second key to understanding EC2 is seeing it as "a family of specifications cut by purpose" rather than "a commodity you configure freely". Many overseas VPS providers sell plans of "so many cores, so much RAM, so much traffic"; EC2 sells a four-dimensional coordinate of purpose, generation, processor and size. That difference sets the learning cost: one is comparison shopping, the other is reading names. It is also why the first strength below is the naming logic rather than node count or price — it is the most intimidating and most useful part of AWS selection.

Key Strengths

  • Instance family naming is a learnable grammar, and reading a name is half of selecting one: a name has four segments. The letter segment marks the purpose family — t is burstable (a CPU baseline with short bursts above it), m is general purpose, c is compute optimized, r and x are memory optimized, i and d are local storage optimized, p and g are accelerated computing, hpc targets high performance computing and mac targets macOS environments. The number segment marks the generation: inside one family a higher number is newer, and numbers are not comparable across families. Letter suffixes mark extras — g means Graviton (ARM), a means AMD, i means Intel, n means enhanced networking, d means local disks and e means expanded storage or memory. The size segment after the dot runs from nano and micro up through large and xlarge, where 48xlarge is 48 times the large size. Four examples cover most cases: t4g.nano is burstable general purpose, 4th generation, Graviton, smallest size, at 2 vCPU and 0.5GB; m5.large is general purpose 5th generation at 2 vCPU and 8GB; c5.xlarge is compute optimized 5th generation at 4 vCPU and 8GB; p5.48xlarge is the largest accelerated 5th generation size at 192 vCPU and 8x H100. Once the rule clicks, selection stops being trial and error, and the details are in cloud server configuration guide.
  • 700+ instance types across 7 families mean "no suitable size" is rarely the problem: the spectrum runs from the cheapest small general-purpose sizes to 192 vCPU accelerated machines, from storage-dense local-disk types to macOS build environments, and the density is high. Density matters because you no longer distort the architecture to fit a size: if memory runs short you move to the memory optimized family instead of adding swap to a general-purpose instance, and if you need local NVMe for a cache you pick a d variant instead of putting the cache on a network volume and living with the extra latency.
  • 87 Availability Zones across 30 geographic regions, joined by low-latency fiber: deploying replicas across Availability Zones is the default AWS high-availability pattern, letting a workload survive a data center level failure inside one region, with cross-region replication available for disaster recovery. For data residency obligations the region list is granular enough to place data in a specific jurisdiction while still serving users from nearby.
  • 200+ companion services share the same modeling approach: security groups, IAM roles, EBS volumes, elastic network interfaces, CloudWatch metrics and Auto Scaling groups all anchor on the instance. The payoff of that consistency is reusable operations work: a tagging scheme built for cost allocation on instances extends naturally to EBS volumes, snapshots and load balancers, and one IAM policy change can affect compute, storage and network permissions at once. The reconciliation pain of assembling a stack from multiple vendors largely disappears when the model is uniform.
  • 143 compliance certifications are material you can hand to an auditor: financial, healthcare, public sector and cross-border data projects usually need the vendor's compliance list and audit reports. EC2 sits directly under many of those controls, and on the customer side a large share of audit items — encryption, logging, access control, change history — can be satisfied with native CloudTrail, Config and KMS capabilities instead of a self-built audit chain.
  • The free tier is enough to validate a real architecture once: new users receive 750 hours per month of t2.micro (1 vCPU, 1GB), 30GB of EBS storage and 100GB of data transfer for 12 months, plus 60+ Always Free services. For a team preparing a technology decision, that window is enough to validate deployment flow, monitoring conventions and the cost model before committing long-term budget.

Product Ecosystem

How the Instance Families Divide the Work

The t family sells "cheap steady state plus occasional bursts" and suits sites with clear traffic troughs and development environments; m is the default starting point for most web services and middleware; c spends the budget on CPU for compilation, batch jobs and high-concurrency endpoints; r and x spend it on memory for in-memory databases, caches and analytics; i and d carry local disks for NoSQL and search clusters that need high local IOPS; p and g cover training and inference, hpc covers tightly coupled scientific computing, and mac covers iOS and macOS builds. The real mistake is not between families but inside one: running sustained high load on the t family hits the performance cliff once CPU credits are exhausted, which is the single most common misjudgment.

The Trade-offs Among Four Billing Models

On-demand has no commitment and can be switched on or off at will, making it the default for short-lived and unpredictable workloads and the baseline every comparison starts from. Reserved Instances trade a 1-year or 3-year commitment for a discount and suit long-running production, with savings in the 40%-72% range. Spot Instances harvest spare capacity and save 60-90%, at the cost of possible reclamation, so they fit only interruptible work: batch jobs, rendering, CI builds and stateless task queues. Savings Plans replace a specific-instance commitment with an hourly spend commitment, keep savings logic close to Reserved Instances, and buy flexibility across families and regions. The usual best mix: cover baseline load with reservations or Savings Plans, absorb peaks with on-demand, and push interruptible work to Spot.

Storage, Networking and Adjacent Pieces

EBS provides block storage billed on provisioned capacity, with volume types layered by throughput and IOPS; snapshots are stored incrementally, and cross-region copies are billed separately. On the network side, VPC draws the boundary, security groups and network ACLs control access, elastic IPs and NAT Gateway handle each direction, and inter-Availability-Zone plus inter-region traffic is metered on its own. What these components share is that their price never appears in the instance rate but always appears in the monthly bill — the point expanded in the next section.

Managed Services and Marketplace

RDS, ElastiCache, EKS and OpenSearch absorb the "I do not want to install the software myself" requirement, while Marketplace offers thousands of preconfigured images so Windows Server, Red Hat, Ubuntu, SUSE and common commercial software can be launched in one click. The line between self-managed and managed is usually drawn at operational headcount: teams able to handle backups, upgrades and failover manage it themselves, and everyone else is better served by managed offerings. Judging instance size against workload is covered in overseas server selection guide.

Limitations

  • The complexity of the billing model is itself a cost: on-demand, Reserved Instances in two commitment lengths, Spot, Savings Plans and Dedicated Hosts, layered with data transfer, EBS capacity and IOPS, snapshots, elastic IPs and NAT Gateway — any combination produces a number that looks reasonable. The problem is that those numbers are not comparable, and unless every add-on is listed explicitly the estimate comes out systematically low.
  • The most common trap is egress, not the instance: inbound data is generally not billed, outbound to the internet starts at $0.09/GB, inter-Availability-Zone and inter-region traffic is priced separately, and NAT Gateway charges again on the data it processes. An architecture whose instance bill looks cheap can double its total at this step; offloading static assets to a CDN and turning cross-zone calls into same-zone calls usually saves far more than downsizing an instance.
  • EBS and snapshot spend hides easily: EBS bills on provisioned capacity rather than bytes written, provisioned IOPS and throughput are charged on top, snapshots are billed incrementally and cross-region copies add more. The most common waste is the unmounted volume nobody deleted and the snapshot retained far past its useful life, both of which accumulate quietly every month.
  • The learning curve is steep, and steepest where it is invisible: 200+ services is only the numeric pressure; the real barrier is the IAM permission model, VPC routing and subnetting, and the difference between security groups and network ACLs. Misconfigure any of these and the symptom is "cannot connect" or "connects but should not", with no clear error to read. Newcomers tend to cut corners on "get it running first, tighten later" and end up with overly broad permission rules.
  • Support is billed separately: the Developer plan starts at $29 per month and Business at $100 per month, while the free tier offers forum support only. For workloads with contractual availability requirements this budget has to enter the total cost, and it never appears in the instance price list.

Use Cases

  • Multinational enterprises and global businesses (★★★★★): 87 Availability Zones, 30 regions and 143 compliance certifications suit organizations that must place data per jurisdiction while keeping one operating model.
  • AI training and inference (★★★★★): the accelerated families span inference to training, up to p5.48xlarge at 192 vCPU and 8x H100, and sharing a domain with SageMaker and S3 means data never has to move between platforms.
  • High-availability production (★★★★★): multi-AZ deployment with Auto Scaling and ELB is a mature pattern, and 99.99% availability has plenty of engineering precedent to copy.
  • Interruptible batch and rendering (★★★★★): the Spot discount covers the cost of rerunning interrupted work, and with checkpointing it suits video transcoding, CI builds and offline analytics.
  • Startups and individual developers (★★★★): the 750 hours per month free tier and on-demand billing lower the entry bar, but budget alerts need to exist from day one or experimentation turns into recurring spend.
  • Simple personal sites (★★★): overkill in features, and the configuration and operations overhead does not pay off for a small blog, which lighter options serve better.

Pricing

On-demand rates below reference Linux instances in us-east-1 and indicate scale rather than a budget conclusion:

Instance Type Spec On-Demand
t2.micro 1 vCPU, 1GB Free (first year, 750 hours/month)
t3.medium 2 vCPU, 4GB About $30/month
m5.large 2 vCPU, 8GB About $69/month
c5.xlarge 4 vCPU, 8GB About $140/month
p3.2xlarge 8 vCPU, 1x V100 About $2,340/month

Reserved Instances and Savings Plans save 40%-72% with a 1-3 year commitment, and Spot fits fault-tolerant workloads with a typically larger discount. The table excludes data transfer, EBS and snapshots, which for small and mid-sized sites can account for a substantial share of the total.

Budget in reverse order: work out egress volume and EBS capacity first, then the instance cost. Instance rates are transparent, searchable and comparable, whereas traffic and storage spend depends on architecture decisions — whether a CDN absorbs static traffic, whether logs are written to object storage, whether every environment keeps a full snapshot set. Those decisions belong in the architecture phase, because changing them later tends to mean changing the release process; cross-tier magnitudes are in cloud server price comparison.

FAQ

  • Does EC2 have a free tier, and is it enough? New users get 12 months of free tier: 750 hours per month of t2.micro (1 vCPU, 1GB), 30GB of EBS and 100GB of data transfer, plus 60+ Always Free services. That is enough to validate deployment and monitoring, not enough to run a site with real traffic, and the metered pricing beyond it is explained in cloud server price comparison.
  • What do the g, a, i and n suffixes actually change? They change processor architecture and network capability, not the purpose family. g is Graviton on ARM with typically the best price-performance, provided the software stack has artifacts for that architecture; a and i are AMD and Intel; n means enhanced networking. Before migrating, confirm that binaries and container images support the target architecture, as described in cloud server configuration guide.
  • Can it be used directly in mainland China? AWS China is operated by partners, with Beijing and Ningxia as separate accounts on separate billing, a service list that does not fully match the global regions, and cross-border latency above domestic vendors. Workloads aimed at Chinese users are usually better served by domestic clouds; the side-by-side differences are in Alibaba Cloud ECS vs Tencent Cloud CVM, and a same-spec comparison against Alibaba Cloud ECS makes a useful budget baseline.
  • The bill came in higher than expected — what should I check first? Check egress and cross-zone traffic first, then unmounted EBS volumes and stale snapshots, and only then whether the instance size is oversized. Those three steps cover most "mystery bill" cases; what remains is usually a misapplied billing model, such as steady-state production still paying on-demand rates. The diagnostic order and tagging conventions are in cloud server configuration guide.
  • Is ICP filing needed for overseas-only deployment? Hosting in an overseas region does not require ICP filing when the audience is outside mainland China, and the domain simply resolves to an overseas address. The moment compliant speed for mainland users is required, domestic nodes and filing become prerequisites, and the boundary between the two paths is in hosting without ICP filing.

Code Examples

Launch an EC2 instance with run-instances by image and size

# 1) Resolve the latest Amazon Linux 2023 AMI
AMI_ID=$(aws ec2 describe-images \
  --owners amazon \
  --filters "Name=name,Values=al2023-ami-*-x86_64" "Name=state,Values=available" \
  --query "reverse(sort_by(Images,&CreationDate))[0].ImageId" --output text)

# 2) Launch a c7g.large (Graviton, ARM) into an existing subnet
aws ec2 run-instances \
  --image-id "$AMI_ID" \
  --instance-type c7g.large \
  --key-name "$KEY_NAME" \
  --security-group-ids "$SG_ID" \
  --subnet-id "$SUBNET_ID" \
  --associate-public-ip-address \
  --block-device-mappings 'DeviceName=/dev/xvda,Ebs={VolumeSize=40,VolumeType=gp3}' \
  --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=web01}]'

# 3) Wait for readiness and read the public IP
aws ec2 wait instance-running --filters "Name=tag:Name,Values=web01"
aws ec2 describe-instances --filters "Name=tag:Name,Values=web01" \
  --query "Reservations[].Instances[].{ID:InstanceId,IP:PublicIpAddress,Type:InstanceType}"

Image and instance family are the two core EC2 decisions: Graviton and x86 differ in price-performance, so pinning the family in configuration makes later comparison honest.

Cut cost with Spot instances while keeping snapshots

# Request a Spot instance with stop-on-interruption behaviour
aws ec2 run-instances \
  --image-id "$AMI_ID" --instance-type c7g.large \
  --key-name "$KEY_NAME" --security-group-ids "$SG_ID" \
  --instance-market-options 'MarketType=spot,SpotOptions={MaxPrice=0.05,SpotInstanceType=persistent,InstanceInterruptionBehavior=stop}' \
  --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=batch01}]'

# Inspect the Spot request and current instance state
aws ec2 describe-spot-instance-requests \
  --query "SpotInstanceRequests[].{ID:SpotInstanceRequestId,State:State,Price:SpotPrice}"

# Snapshot before important data lands to limit interruption loss
aws ec2 create-snapshot --volume-id "$VOLUME_ID" \
  --description "batch01 checkpoint $(date +%F)"

Batch and interruption-tolerant jobs fit Spot well: stop-on-interrupt plus snapshots cuts cost sharply without losing data.

Community & Resources

Communities and official channels

Learning resources and tools

Visit AWS EC2 Website → https://aws.amazon.com/ec2/
Visit Website ↗