Search code examples
amazon-web-servicesamazon-ec2amazon-ebs

What happens with data when I stop EBS backed instances


What happens with data in Ephemeral storage when I stop EBS backed instances?

  1. AWS makes a snapshot and store it in EBS - not losing data
  2. AWS makes a snapshot and store it in S3 - not losing data
  3. AWS makes a snapshot and store it in EBS - losing data
  4. AWS makes a snapshot and store it in S3 - losing data

Solution

  • When you stop an instance, data on Ephemeral storage is deleted. Data on EBS volumes are preserved as they exist independent of the host.

    Ephemeral storage is a hard drive attached to the host machine. Since your instance does not maintain affinity with the host when stopped, you wont retain that data.

    EBS volumes are like network attached storage. They exist in a storage array outside of the host and will always exist unless the volume fails (which is pretty rare)