I have an EC2 instance, with instance store root device (i.e., not EBS), running Linux (Ubuntu).
What happens if I restart the instance like so:
sudo reboot
- Will the instance storage still be there after reboot, or does it get wiped?
- How about the public IP address of the EC2 instance (assuming an Elastic IP is not used): does it change or stay the same?
- If an Elastic IP is used, will it still be associated with this instance after reboot?
If you reboot your instance, it's not moved to new hardware, and the instance store should still be there.
Also, since the instance is not being stopped, then the elastic IP should persist. Only if the instance is stopped will the elastic IP be disassociated.
Yes, the instance store will still be there after reboot, intact.
Also, yes, the IP address stays the same. (
But if an Elastic IP was used, you'll need to re-associate it with the instance, if I recall correctly.Also Elastic IP is retained, as Matt Houser points out.)