Launching an Instance with an Instance Store
To begin, navigate to the EC2 console and launch a new instance. For this demonstration, name your instance “instance store demo” and select the Amazon Linux 64-bit AMI. Note that not all EC2 instance types support instance stores; for example, t2.micro and other free tier instances lack instance store volumes. Select an instance type that includes instance store support—even if it comes at a small cost for this short demo. After choosing an appropriate instance type, select any key pair of your preference.
/dev/nvme0n1 or /dev/nvme1n1. Also, ensure that “Auto-assign Public IP” is enabled so you can easily connect to your instance.
Once your instance is deployed, return to the EC2 console’s instance tab. You should now see the instance with its assigned public IP.

Connecting and Configuring the Instance Store
After noting the public IP, SSH into your instance. Once connected, run the following command to verify the block devices:nvme0n1 is your root volume (with partition nvme0n1p1 mounted as /), and nvme1n1 is the instance store volume.
Verify if a file system exists on the instance store volume by running:
Keep in mind that the instance store is optimized for fast, temporary storage. It is ideal for cache, buffers, or temporary files, but not for data that requires persistence.
Demonstrating the Ephemeral Nature of Instance Store Data
Data on an instance store is ephemeral. A simple reboot will not change the physical host, so your instance store volume and its data remain intact. You can verify this by rebooting the instance from the EC2 console (right-click the instance and select “Reboot”). After the reboot, the public IP address will remain the same.
- Record the current public IP address.
- Stop the instance using the EC2 console.
- Wait a few minutes, then start the instance again.

nvme1n1) is still present. However, if you check the file system with:
/instance-demo, you will find that the test file created earlier is missing. This confirms that data from the previous instance store has been lost due to the instance migration.
Do not use instance stores for storing critical data. Always rely on persistent storage solutions like Amazon EBS for data that must be retained.
Conclusion
This article illustrates that instance store volumes on AWS EC2 are temporary. While a simple reboot preserves the data, stopping and starting the instance moves it to a different physical host and clears the instance store. For AWS environments, it’s crucial to use instance stores only for temporary data needs. Happy learning, and see you in the next article!Quick Reference Table
| Command/Action | Description | |
|---|---|---|
lsblk | List block devices | |
sudo file -s /dev/nvme1n1 | Check for a file system on the instance store volume | |
sudo mkfs -t xfs /dev/nvme1n1 | Create an XFS file system on the instance store | |
sudo mkdir /instance-demo | Create a mount directory | |
sudo mount /dev/nvme1n1 /instance-demo/ | Mount the instance store | |
df -k | Confirm the mount status | |
| `echo “test” | sudo tee test` | Create a test file on the instance store |