Not able to Access Restored Ec2 Instance from Another AWS Account

0

So, i have a scenario like, I have enabled cross-account backup, and am successfully able to copy my Windows Ec2 backup to my another AWS Account, which is also part of the same organization. but when I am trying to restore that it launches the instance but its Instance status checks give the Instance reachability check failed error. I am not able to find the reason, also I found that instance is getting launch without any key-pair attached. can anyone pls help me to figure out the issue and suggest any possible resolution?

Shriram
已提問 6 個月前檢視次數 324 次
3 個答案
0
已接受的答案

SO i have static ip for the instance which i took Snapshot of, so i change the IP allocation to DHCP and then took a snapshot and shared it to another account, and it worked.

Shriram
已回答 6 個月前
0

Is any of the EBS volumes encrypted with the standard aws/ebs kms key?

This can be in issue when restoring a snapshot from a different AWS account and you generally need to re-encrypt the snapshot of the EC2 instance with a key that can be used from the destination account.

https://aws.amazon.com/blogs/security/how-to-share-encrypted-amis-across-accounts-to-launch-encrypted-ec2-instances/

已回答 6 個月前
  • Hi, Thanks for the reply. As i can check, my source EBS is not encrypted.

0

Hi,

If you take a EC2 snapshot in one account and restore it in another, you will face security issues: the EC2 instance is only reachacble with the access keys of your source account that are not available in your target account. Hence the reachability issue,

The simplest way to achieve what you want is to go via AMIs that can be shared (hence restored) across accouts.

Please, follow this guidance to do achieve what you want: https://repost.aws/knowledge-center/account-transfer-ec2-instance

Best,

Didier

profile pictureAWS
專家
已回答 6 個月前
  • so basically, i am sharing a backup using aws backup to another aws account. we have prod account and from there we are sharing to DR account

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南