Move AWS EC2 Instance to another account

前端 未结 5 1349
长发绾君心
长发绾君心 2021-02-19 09:16

I created a Amazon AWS EC2 instance under my account and made an website/ftp on it, now a new partner wants to move the instance under his company account so his company can pay

5条回答
  •  生来不讨喜
    2021-02-19 10:05

    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.

    Related information

    • Changing the Encryption State of Your Data

    • AWS CLI Command Reference (EC2)

    Source: Transfer Amazon EC2 Instance

提交回复
热议问题