Launching an Instance with an Instance Store
Begin by navigating to the EC2 console and launching a new instance. For this demonstration, we use the Amazon Linux 64-bit AMI and name the instance “instance store demo.” Note that not all EC2 instance types support instance stores; for example, free-tier instances such as t2.micro do not include this feature. When selecting an instance type, ensure it provides an instance store, and be aware that charges may apply for prolonged running sessions. When reviewing the instance configuration, you will see details such as:- An 8 GiB root volume.
- An additional instance store volume (e.g., 75 GiB) attached with a device name like
/dev/nvme0n1.



Setting Up the Instance Store Volume
Once your instance is up and running, retrieve its public IP address and SSH into it. Begin by listing the available block devices:/dev/nvme0n1represents the root volume./dev/nvme1n1is the instance store volume (approximately 75 GB).
/instance-demo) and mount the instance store volume:
df -k command:
test file confirms that your instance store is mounted and operational.
Persistence and Instance Movements
Remember that a reboot keeps the EC2 instance on the same physical host, preserving the instance store. However, a stop/start operation changes the host, causing the loss of any data on the instance store.
- Reboot the instance from the EC2 console.
- Confirm that the public IP remains the same.
- SSH back into the instance.
- Use
lsblkanddf -kto verify that the instance store volume is still present and mounted.

- The public IP has changed.
- The instance store volume is freshly attached with no pre-existing data.


/dev/nvme1n1:
test may be missing if the volume was remounted after a stop/start (i.e., when the instance moved). This confirms that instance store data does not persist across host changes.
Key Takeaways
This concludes our lesson on using EC2 instance store volumes. Always remember the nuances between temporary and persistent storage when planning your deployments.
Happy learning!