- 최신
- 최다 투표
- 가장 많은 댓글
Hello!
Unfortunately, if an instance is removed through instance retirement, there is no way to recover code from the instance unless you have created a snapshot of the instance.
Use the following documentation for further guidance: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#termination-overview
Hello!
I understand that you are trying to recover code from an instance that was deleted due to a scheduled EC2 instance retirement.
If your root volume was an instance store and you had not attached any EBS volumes, unfortunately you cannot recover the instance nor the data. Once the instance passes its retirement date, the instance is terminated and cannot be used again.
If your root volume was an EBS volume, the instance will be stopped upon retirement. If your instance has not yet been terminated and is still available, you can restart your instance and it will be migrated to new underlying hardware so your data will persist.
If you had backed up your data to an EBS snapshot or AMI before the instance was terminated, you can recover your data using either of the following methods.
- Launch a replacement EC2 instance using EBS snapshots or AMI backups that were created from the terminated instance.
- Attach an EBS volume from the terminated instance to another EC2 instance. You should be able to access the data contained in those volumes.
For more information, please refer to the following documentation.
Instance Retirement
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-retirement.html https://repost.aws/knowledge-center/ec2-instance-retirement
EBS vs Instance Store
https://repost.aws/knowledge-center/instance-store-vs-ebs
EC2 Instance Root Device Volume https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/RootDeviceStorage.html
Recreating a terminated EC2 instance
https://repost.aws/knowledge-center/recovery-terminated-instance
If you should require any specific support or information regarding the resources in your account, please feel free to create a case with us.
https://docs.aws.amazon.com/awssupport/latest/user/case-management.html
Hope this helps!