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
preguntada hace 6 meses322 visualizaciones
3 Respuestas
0
Respuesta aceptada

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
respondido hace 6 meses
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/

respondido hace 6 meses
  • 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
EXPERTO
respondido hace 6 meses
  • 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

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas