Skip to main content

AWS Theory Note

IAM

  • Role can only be used by trusted services
    • Can be used/assumed via container like Instance Profile

EC2

  • Purchase Options
    • Reserved (1 & 3 years term): long workloads
      • Reserved Instances
      • Convertible Reserved Instances: flexible instances
    • Saving Plans (1 & 3 years term): commit amount of usage
    • Spot Instances:
      • Short workloads
      • Cheat
      • Less reliable
    • Dedicated Hosts: ec2 instance run on entire dedicated physical server
    • Dedicated Instances:
      • ec2 instance run on VPC that run on hardware that is bounded to account (for dedicated purpose). the hardware does not change as long as it is used
      • isolate hardware with non-dedicated instances

EBS

TypeEphemeralMulti-AttachPerformance
gp2Network block storage
SSD
General Purpose
gp3^GP
io1^Same AZHigh
io2^Same AZHigh
st1Network block storage
HDD
GP
sc1^Infrequently Accessed
EFSNetwork file storageRegional
One Zone
Security Group
Very high
Autoscaled
EC2 Instance StorePhysical DriveVery high
  • Network drives -> latency

  • Accidental deletion to Snapshots or AMI can be prevented by using Recycle Bin (1d ~ 1y)

  • Device Name

  • EC2 Instance Store

    • Physical drives attach to the instance
    • Ephemeral
    • Very high IOPS
  • Only SSD-type volume can be root volume

  • EFS (Linux only)

    • Network Filesystem
    • Expensive
    • Auto-scaled, can be attached to multiple instances

ELB

  • SNI (Server Name Indication): loading multiple SSL certificates onto one web server