George Kiritsis
George Kiritsis

Reputation: 145

Copy EC2 instance from one Amazon account to another one(for testing)

I want to copy the EC2 instance that i have to one amazon account to another one account that i have now.At the first account,at the EC2 instance i am running a website.I want exactly the same website to be copied at the new account that i have,because my second account is for testing purposes and i want to do changes to the website without affecting the first account,the website that is online.I don't know very well of the Amazon services and how can i manage them,I ask for your understanding.Can i do this?And if i can do it,which are the steps? But if i can make a copy inside the first account,that has the online website,and testing this copy without affecting the main website again,is accepted and i can do it,just tell me how can i do this. Thanks in advance

Upvotes: 1

Views: 989

Answers (2)

anoop-khandelwal
anoop-khandelwal

Reputation: 3860

Stop Instance(if possible) and create AMI from it Copy AMI from Account A to Account B . launch Instance from AMI and you are good to go.

You can read about it here

Also, if you want to automate this then you can visit Botmetric

Upvotes: 1

NHol
NHol

Reputation: 2125

The following AWS KB article describes the process. It's not possible to copy the instance, but you can create an AMI of the instance and share it with the other AWS account. Then you create another instance from that AMI in the other account.

https://aws.amazon.com/premiumsupport/knowledge-center/account-transfer-ec2-instance/

Upvotes: 2

Related Questions