holly7016
holly7016

Reputation: 31

Instance Store and EBS - Which is used by default?

I understand the differences between instance storage and EBS.

However, if I used an m5d.4xlarge instance which is backed by nvme instance store and I also attach some EBS to it, which type of storage is used by default? Is there a process to determining which storage type gets used first?

Upvotes: 3

Views: 855

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269380

Each drive is mounted as a different device.

Using a Windows analogy, C: would be the Amazon EBS boot disk, while D: would be Instance Store. You choose the device-type by choosing which drive/mount point you want to use.

Amazon EC2 - Add Storage

In the days before Amazon EBS, the EC2 instances would boot from Instance Store. This meant it was not possible to 'Stop' the instance, since it would lose the boot disk. These days, instances boot from EBS volumes. However, any data kept on Instance Store will be lost when the instance is Stopped. It is great for temporary storage, caches or where the data is available elsewhere (eg can be reloaded from S3).

Upvotes: 3

Related Questions