How you can recover or restore data from an Amazon Elastic Compute Cloud instance, that was terminated.
Taiwo Amao
Technical Support Engineer @ Moniepoint Group ? DevOps ?? ? Cloud Migration ? 5x AWS ? 2x Azure ? Platform Engineer ? AWS Community Builder ??
As part of an Amazon EC2 instance termination, the data on any instance store volumes associated with that instance is deleted.?
By default, the root Amazon elastic block storage device is automatically deleted.?
So, it's not possible to recover either the original Amazon EC2 instance or any volumes that were deleted as part of the termination process. However, you can use multiple methods to recreate the terminated instance, we can launch a replacement EC2 instance, using?Amazon EBS snapshots?or?Amazon machine images?backups created from the terminated Amazon EC2 instance.?
For more information on how to launch a replacement instance, you can check the AWS EC2 documentation. Another method is to check whether the root volume of the terminated instance(s) is available in the EC2 console. So, we can attach this volume to another instance and further can access the data contained inside the root volume. For more information on how to attach an EBS volume to an EC two instance, you can check the AWS EC2 documentation.
For future planning, use the following methods to prevent instance termination and volume deletion:
So now you know how you can recover or restore data from your terminated instance and also the steps that you can take to prevent your data from getting lost in case of accidental instance termination.
Site Reliability Engineer | DevOps | Speaker | LinkedIn Learning Instructor | YouTuber | CKA | CKAD
2 年Nice one Taiwo Amao