Skip to content

What's the difference between an instance store and an EBS volume?

1 minute read
1

I want to store data that's associated with my Amazon Elastic Compute Cloud (Amazon EC2) instance. I don't know whether to use the instance store or an attached Amazon Elastic Block Store (Amazon EBS) volume.

Resolution

Some Amazon EC2 instance types come with an instance store that you can use for temporary storage. Data that's stored in instance store volumes isn't persistent through instance stops, terminations, or hardware failures.

To store data for longer periods or to encrypt data, use Amazon EBS volumes instead.

To prevent unintentional changes or data loss, it's a best practice to frequently create snapshots. You can use AWS Backup to automate snapshot creation.

Note: In Amazon EBS, the DeleteOnTermination attribute for an instance's root volume is set to true by default. If you don't change this attribute, then Amazon EBS deletes the instance's root volume when the instance terminates. To keep the root volume, change the DeleteOnTermination attribute to false.

Related information

Storage options for your Amazon EC2 instances

Amazon EBS pricing

AWS OFFICIALUpdated a year ago