Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset EC2 ubuntu instance?

My client created a ubuntu server 16.04 to deploy a web app. And I have been getting difficulties the get the app deployed properly ...

So is there a way for me to reset the server back to its original state via command line?

like image 382
geek-tech Avatar asked Dec 11 '22 10:12

geek-tech


2 Answers

  1. Go to the EC2 Dashboard -> Instances
  2. Select the instance you want to reset.
  3. Hit the dropdown menu for "Actions" -> "Monitor and troubleshoot" -> "Replace root volume"

enter image description here

like image 190
Bronson Avatar answered Dec 12 '22 23:12

Bronson


AWS doesn't have a feature like VmWare's restore snapshot. If you want the machine restore to its original state, you have to launch the machine again. But it will get a different IP. There is no way to reset your instance to its original state.

Update: Please check this answer as Amazon recently added this feature in 2021. Check this Amazon link

like image 36
helloV Avatar answered Dec 12 '22 22:12

helloV