4 ms·
You can't. Instance types are fixed. He was likely using an EBS-root configured AMI, where the mount point for EBS is /. These are EBS-backed, but since the EBS
by mh- 15y ago
You can't. Instance types are fixed. He was likely using an EBS-root configured AMI, where the mount point for EBS is /. These are EBS-backed, but since the EBS block is automatically created when you spool up the instance; it is also automatically deleted when you terminate the instance, unless you specify otherwise.
- sandGorgon 15y agoThis. I have to repeatedly tell people that EBS-backed is not persistent. Amazon did everyone a big disservice by calling something -backed when it was actually transient.
- cperciva 15y agoIt is persistent until you delete it. What more could you ask for?
- sandGorgon 15y agopersistent until you terminate the instance. Unlike a EBS volume that you explicitly attach, which persists beyond the termination of the instance you attach it to.
- spartango 15y agoThis is not actually true. If you Stop an EBS-root EC2 instance, the EBS Volume can be safely detached and moved along to other instances, or you can restart the instance and your data will be ok. Additionally, There's no excuse for not snapshotting your EBS volumes of any sort, and these snapshots persist beyond the lifetime of the volume. I find it just a little sad that relatively few (less than all) EBS customers don't snapshot their volumes.
- saurik 15y agoYou do not have to move your volumes: while the instance is in a "stopped" state you can change it's instance type and then restart it. EBS-root let's you change hardware as fast as you can reboot with just three commands.
- mh- 15y agoYou are, of course, correct. Notice in my post that you replied to I was careful to use the word terminate, not stop, when referring to what I assume he did to his instance. edit: After re-reading my post it probably wasn't clear to people who don't use EC2; so your reply is probably for the best. :)
- bad_user 15y agoAnd why would anyone want to immediately terminate an instance when you can just stop it instead?