I was using sudo rm -rf
to delete some folders, and accidentally deleted the /Users/ec2-user
home directory. I had my EC2 and AWS Route 53 running my site. Now, it just disappeared. I have all the files for my website, but don't know how to get it back up and running well. It just says "No Data Received" if I visit my website. Help!
1 Answer
If you have taken an AMI of your instance or an EBS snapshot, you can launch a new instance from it. Otherwise, if you have all your important files somewhere else, you can launch a fresh stock instance and redo the setup you did originally. Then just reassign the Elastic IP of the old instance to the new instance, and terminate the old one.
-
1This. Make a new server and try not to break this one so carelessly.– XyonCommented Jan 29, 2014 at 12:56
~/
folder?/Users/ec2-user
and then copying the files back.