EBS Cheat Sheet

  • Elastic Block Store
  • Used with EC2 Instances
  • Network attached storage
  • Block level storage
  • Suitable for creating filesystems and running databases (unlike S3)
  • EBS multi-attach allows you to attach an EBS volume to multiple EC2 Instances(upto 16)
  • Multiple EBS volumes can be attached to an EC2 instance
  • To attach, EBS volume should be in the same Availability zone as the EC2 Instance.
  • Attached EBS volumes cannot be deleted. To delete, you should first detach the volume from the EC2 Instance.
  • By default, root ebs volumes are terminated when an Instance is terminated.
  • By default, non-root ebs volumes persist when an Instance is terminated.
  • Supports Encryption.
  • Types of EBS volumes:
    • General Purpose SSD
      • 1GB to 16TB
      • Max IOPS 16000
      • Suitable for most general requirements
    • Provisioned IOPS SSD
      • 4GB to 16TB
      • Max IOPS 64000
      • Suitable for large database workloads
    • Throughput Optimized HDD
      • 500GB to 16TB
      • Max IOPS 500
      • Not suitable for root volume
    • Cold HDD
      • 500GB to 16TB
      • Max IOPS 250
      • Not suitable for root volume
      • Lowest cost
  • EBS volumes can be backed up by capturing snapshots (point in time images)
  • Snapshots are incremental
  • Snapshots can be used for migrating EBS volumes/ duplicating EBS volumes/ encrypting EBS volumes
  • Snapshots are region specific.
  • Snapshots can be shared with other AWS accounts