Skip to content

EC2 overview

Pricing Options

DORS - Dedicated (most expensive) - On-Demand (pay by the hour or second) - Reserved (reserve for 1-3 years. up to 72% discount) - Spot (purchase unused capacity. up to 90 % discount)

Instance Types

  • R: RAM
  • C: CPU
  • M: "medium", balanced
  • I: I/O
  • G: GPU
  • T2/T3: burstable

Instance overview

  • ASG
  • ELB
  • EBS
  • EFS

Relevant Knowledge

  • SSH (e.g. ssh ec2-user@<IP> -i <rsa-key.pem>)
  • User Data / bootstrapping

Metadata

Data about the EC2 instance. Inspect:
curl http://<IP>/latest/meta-data/
e.g. getting the IP:
curl http://<IP>/latest/meta-data/public-ipv4

Similarly, user-data can also be queried:
curl http://<IP>/latest/user-data

TODO: AMI's

TODO: Image Builder

TODO: placement groups