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
gefragt vor 6 Monaten322 Aufrufe
3 Antworten
0
Akzeptierte Antwort

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
beantwortet vor 6 Monaten
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/

beantwortet vor 6 Monaten
  • 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
EXPERTE
beantwortet vor 6 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen