Elastic Block Storage (EBS)

  1. Block level storage volumes that can be attached to EC2 instances as root/boot or secondary volumes
  2. HDD and SSD (root and secondary) are supported
    1. Bootable root volume or secondary volume
      1. General purpose SSD gp2(3 IOPS/GB burstable to 3000 IOPS)
      2. Provisioned IOPS io1 (10,000 and above IOPS)
      3. Magnetic Standard
    2. Secondary Volume only (can’t be used as root volume)
      1. Throughput optimized HDD (st1): Data warehousing, log processing
      2. COLD HDD sc1: infrequently accessed such as file server
  3. Replicated within the availability zone
  4. All volumes except standard HDD can be modified even while they are attached as root volumes to a running EC2
    1. Only increase size possible
    2. Can switch from gp2 to provisioned IOPS io1 and vice versa
  5. Snapshots
    1. Saved on S3
    2. Incremental
    3. Snapshots of encrypted volumes are encrypted automatically and vice versa
    4. Can be shared with other accounts only if unencrypted
    5. For unencrypted volumes, you can encrypt a volume’s data by means of snapshot copying

      1. Create a snapshot of your unencrypted EBS volume. This snapshot is also unencrypted.
      2. Copy the snapshot while applying encryption parameters. The resulting target snapshot is encrypted.
      3. Restore the encrypted snapshot to a new volume, which is also encrypted.
    6. Convert from unencrypted EC2 boot volume to encrypted boot volume
      1. Create  AMI (Create Image) (unencrypted EC2 –> unencrypted AMI)
      2. Copy this image and check the Encryption box. Using the CLI, you would use the copy-imagemode with the --encrypted flag. (unencrypted AMI -> encrypted AMI)
      3. Re launch a new EC2 from the new encrypted AMI and apply EIP etc and test
      4. shutdown the old EC2
  6. EBS and AZs and Regions
    1. EC2 and its volumes must be in the same AZ. Since latency is important.
    2. To move an existing volume from AZ1 to AZ2, you need to take a snapshot and restore volume from that snapshot in AZ2
    3. You can copy a snapshot from Region 1 to Region 2 and then create an image or volume from that snapshot
  7. AMIs
    1. AMI’s are region specific.
    2. AMIs can be created from snapshots or volumes
    3. You can copy AMI from one region to another and then launch instance from the copied AMI in the new region
    4. Marketplace AMIs are not encrypted at rest
  8. Instance Store (Ephemeral storage)
    1. Instance stores are saved on S3
    2. Only certain EC2 types such as m class support instance store
    3. EC2 instances having root instance store volume can’t be started/stopped. Only rebooted or terminated
    4. Instance store backed EC2 while terminated, no option to save the volume
  9. Stop/start of EBS backed EC2 instance will provision the new instance on a different hypervisor/host
<<< Elastic Compute Cloud (EC2)Elastic Load Balancer (ELB) >>>
Copyright 2005-2016 KnowledgeHills. Privacy Policy. Contact .