EC2 Pricing Models, Storage Options and Images: On-Demand, Savings Plans, Spot, EBS, Instance Store and AMIs

AWS Technical Essentials 45 min min read Updated: Nov 17, 2026 Beginner
EC2 Pricing Models, Storage Options and Images: On-Demand, Savings Plans, Spot, EBS, Instance Store and AMIs
Beginner Topic 2 of 4

EC2 Purchasing Options

OptionHow it worksBest forDiscount
On-DemandPay per second. No commitmentNew, short or unpredictable workloads, learningNone (baseline price)
Savings PlansCommit to a dollar amount per hour for 1 or 3 yearsSteady usage that may change instance types. Compute Savings Plans also cover Fargate and LambdaUp to about 66-72 percent
Reserved Instances (RIs)Commit to specific instance attributes for 1 or 3 years (Standard or Convertible)Steady, predictable workloadsUp to about 72 percent
Spot InstancesUse spare capacity. AWS can take it back with a 2-minute warningFault-tolerant jobs: batch, CI, big dataUp to about 90 percent
Dedicated Hosts / InstancesA physical server just for youLicensing rules or complianceHigher cost
Capacity ReservationsReserve capacity in an AZGuaranteed capacity for eventsNo discount by itself
Easy memory On-Demand = flexible. Savings Plans / RIs = steady and cheaper. Spot = cheapest but can be interrupted. Dedicated = single-tenant for licensing.

What You Pay For With EC2

  • Compute time (per second for Linux, minimum 60 seconds)
  • Storage (EBS volumes, snapshots)
  • Data transfer out to the internet and between Regions or AZs (data in is free)
  • Other: Elastic IPs, load balancers, NAT gateways, licenses

Storage for EC2

StorageTypeSurvives stop?Best for
EBS (Elastic Block Store)Network disk attached to one instance (in the same AZ)Yes. Persists independentlyOS disks, databases, anything you must keep
Instance storeDisk physically on the hostNo. Lost on stop or terminateCache, scratch data, temporary buffers
EFSShared network file system (NFS)YesFiles shared by many Linux servers
S3Object storage over the APIYesBackups, images, logs, static content

EBS Volume Types in Simple Words

TypeMeaningUse
gp3General purpose SSD, good defaultBoot disks, most apps
io2 / io1Provisioned IOPS SSD for very fast, steady I/OCritical databases
st1Throughput HDD (cheap, big sequential reads)Logs, big data
sc1Cold HDD (cheapest)Rarely used data
  • An EBS volume lives in one AZ. Attach it to an instance in the same AZ
  • You can resize a volume while it is in use, then extend the file system
  • Turn on EBS encryption (and encryption by default for the account)

Snapshots: Backups of EBS

bash aws ec2 create-volume --availability-zone ap-south-1a --size 20 --volume-type gp3 aws ec2 attach-volume --volume-id vol-0abc --instance-id i-0abc --device /dev/sdf aws ec2 create-snapshot --volume-id vol-0abc --description "before upgrade" aws ec2 create-volume --snapshot-id snap-0abc --availability-zone ap-south-1b # restore, even in another AZ aws ec2 copy-snapshot --source-region ap-south-1 --source-snapshot-id snap-0abc --region ap-southeast-1 # to another Regio
  • Snapshots are incremental and stored safely in S3 by AWS
  • Use Data Lifecycle Manager or AWS Backup to automate daily snapshots and delete old ones

AMIs: Reusable Server Templates

  • An AMI contains the OS, software and settings to launch identical servers
  • Make your own: set up one server perfectly, then Create image. Launch many servers from it
  • AMIs are Regional. Copy them to use in another Region
  • Share an AMI with other accounts or keep it private. Build them automatically with EC2 Image Builder
bash aws ec2 create-image --instance-id i-0abc --name "web-golden-v1" --description "nginx configured" aws ec2 describe-images --owners self --query 'Images[].[ImageId,Name]' --output table aws ec2 run-instances --image-id ami-0new --instance-type t3.micro --count 3

Cost Tips for Beginners

  1. Stop or terminate things you are not using
  2. Pick the smallest size that works, then grow
  3. Use Savings Plans only after you know your steady usage
  4. Use Spot for jobs that can restart
  5. Delete unattached volumes and old snapshots
  6. Watch data transfer out and NAT gateway costs
  7. Use AWS Compute Optimizer and Cost Explorer for advice

Practice

  1. Create a 20 GiB volume, attach it, format it and mount it
  2. Take a snapshot, delete the volume and restore it
  3. Create an AMI from your nginx server and launch a copy
  4. Compare the On-Demand price of two instance types using the Pricing Calculator

Conclusion

Pay On-Demand to learn, commit with Savings Plans or Reserved Instances for steady use, use Spot for interruptible work, keep important data on EBS (not instance store), back up with snapshots, and build servers from AMIs.

Quick Summary: purchasing options; costs; storage types; EBS; snapshots; AMIs; cost tips.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators