I would like to transfer an EC2 instance from one Amazon Web Services (AWS) account to a different AWS account, or launch a copy of an EC2 instance on a different AWS account. How can I do this?

It isn’t possible to transfer existing instances between AWS accounts, but you can manually migrate EC2 instances from one AWS account to another AWS account by creating an AMI based on that EC2 instance, sharing the AMI with another AWS account, and launching a new instance based on that AMI on the other AWS account.

To share or migrate EC2 instances from a source account to a target account, follow these steps:

  1. Create a custom Amazon Machine Image (AMI) from the instance you want to share or migrate. Be sure to include all required EBS data volumes in the AMI.
    Note: Data stored on instance store volumes isn't preserved in AMIs, and won't be on the instance store volumes of the instances that you launch from the AMI.
  2. Share the AMI with the target account using either the EC2 console or the AWS Command Line Interface (CLI).
  3. From the target account, find the AMI using the EC2 console or the AWS CLI.
  4. Launch a new instance from the shared AMI on the target account.
    Note: The private IP address of VPC instances will be different in the new account, unless you specifically set them during launch.

Amazon Elastic Compute Cloud (Amazon EC2), migration, move EC2 instance


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2015-03-04
Updated: 2016-12-30