Reputation: 7280
I realise that similar posts exist but I'm really confused because each of them says different things.
I have created a m1.small EC2 instance. I don't need it to be up and running 24 hours. So, I want to stop it when not in use to avoid unnecessary charges. I understand that the code on ephemeral storage would be lost on stooping the instance.
I read on how to do that safely. Some posts talk about creating EBS and AMI. While others say that you can stop an instance without having EBS or AMI and restart it without losing anything. While some other say that EC2 instance are EBS backed by default. I am really confused.
So, my question is. What is ephemeral storage and how can I find if my code is on ephemeral storage? And do I need to create an EBS or AMI before stopping the instance?
Thanks a lot
Upvotes: 1
Views: 703
Reputation: 4649
Just to make clear. AWS has got two different types of storage. Instance store and EBS. EBS are basically persistent storage system, which holds the data even if you stop the instance or either reboot. Its a best practice to have EBS backed instances. Nothing to worry your instance is already EBS backed. You can stop the instance and start it when when ever you want. No data will be lost. Even I stop and start instances to cut cost. You can also automate this using aws cli or boto. So even if you forget to shut down or stop the instance it will be stopped automatically.
Upvotes: 1
Reputation: 85
Upvotes: 0