title says it all. I inadvertently terminated an EC2 Instance and desperately need to restart it/relaunch it!!! Any help? It would be disastrous if I had to start all over!! Does anyone know how I can fix this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Basically it goes like this:
- Your machine is gone, you cannot restart, you need to create a new instance
- all the data you had on an instance store volume are gone (you cannot recover those)
- If you had EBS Volume attached and you had setting enable for 'delete on termination' the latest data are gone. You can recover if you have a snapshot from this volume.
- If you had EBS Volume attached without flag for 'delete on termination' you can recover those data
So what you can do:
- check your snapshots and Volumes in the ec2 console. If you have no snapshot/volumes, you cannot recover anything
- if you have root volumes,
- make a snapshot of those you want to recover
- from the snapshot, make an image
- from the ami, launch a new instance for the specific image you've just created
- if you dont have root volumes
- create volumes from snapshot if you have any snapshot you need to recover data
- create a new ec2 instance
- attach and mount the volumes to the new instance
- read and backup your data
标签:
amazon-ec2