Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring ec2 instances between accounts

I'm writing an app for a client on a ec2 instance, and now it's time to setup a prod ec2 instance under his AWS account. Can I somehow transfer the ec2 instance which is running under my account to his account? Or I would have to create prod environment from scratch?

like image 266
ed1t Avatar asked Jun 17 '11 17:06

ed1t


People also ask

Can we transfer EC2 from one account to another?

Short description. It's not possible to transfer existing instances or AMIs between AWS accounts. Instead, you can manually migrate an EC2 image from one AWS account to another.

How do I transfer an EC2 instance?

It's not possible to move an existing instance to another subnet, Availability Zone, or VPC. Instead, you can manually migrate the instance by creating a new Amazon Machine Image (AMI) from the source instance. Then, launch a new instance using the new AMI in the desired subnet, Availability Zone, or VPC.


1 Answers

Create an AMI of that instance and share the AMI with the other account. Take note of "Sharing an AMI with Specific Users":

aws.amazon.com/articles/530

You can create an AMI through the AWS GUI by selecting your source instance, clicking the "Instance Actions" dropdown and clicking "Create Image".

like image 51
John Claus Avatar answered Sep 22 '22 06:09

John Claus