내용으로 건너뛰기

Moving Lightsail from one AWS account to another.

0

How would I go about moving my Lightsail instance from one AWS account to another. It seems like I cannot export snapshot from one account to another. What's the best step to take to achieve this ?

질문됨 일 년 전278회 조회
2개 답변
1
수락된 답변

Moving a Lightsail instance from one AWS account to another is not a straightforward process, as Lightsail instances cannot be directly transferred between accounts. However, there is a method you can use to achieve a similar result:

  1. Create a snapshot of your Lightsail instance in the source account.

  2. Export the Lightsail snapshot to an Amazon Machine Image (AMI) and an encrypted snapshot of an Amazon EBS volume.

  3. By default, the snapshot is encrypted with an AWS managed key, which cannot be shared between accounts. To address this, you need to manually encrypt a copy of the AMI with a customer managed key that can be used from the target account.

  4. Share the copied AMI with the target AWS account.

  5. In the target account, launch a new EC2 instance using the shared AMI.

This process effectively migrates your Lightsail instance to an EC2 instance in the target account. It's important to note that while this method preserves your data and configuration, you'll be moving from a Lightsail environment to an EC2 environment, which may have some differences in management and pricing.

Keep in mind that you'll need to reconfigure any Lightsail-specific settings or features in the new EC2 environment. Also, ensure that you have the necessary permissions in both accounts to perform these actions.

If you require maintaining the instance within the Lightsail environment, unfortunately, there isn't a direct way to move it between accounts while keeping it as a Lightsail instance. In such cases, you might need to recreate the instance in the new account and manually transfer your data and configurations.
Sources
Resource replication or migration between AWS accounts - AWS Prescriptive Guidance
Transfer EC2 instance or AMI to another account | AWS re:Post

답변함 일 년 전
전문가
검토됨 일 년 전
0

Currently, you cannot move a Lightsail instance between accounts. The steps above would result in an EC2 instance in the second account.

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠