How to migrate Lightsail instances from one AWS account to another

0

Could anyone please help on how to migrate Lightsail instances from one AWS account to another (if at all possible). In Snapshots, I could see:

  • Copy to another Region
  • Export to Amazon EC2 Enter image description here
2 Answers
1

To migrate a Lightsail instance to another account is not quite straightforward as that utility is not built into the interface.

You can snapshot the instance, turn that into an Amazon Machine Image and launch that using EC2 on the other account. The only minus here is that you will not be using Lightsail on the destination account. You do expose all the 'nerd knobs' of the full EC2 experience. :)

If I were undertaking this I would do the following.

  1. Snapshot the instance.
  2. Export the snapshot to S3 - https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-exporting-snapshots
  3. Turn the snapshot into an AMI - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html
  4. Share the AMI with the other account - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html
  5. Launch an EC2 instance with the custom AMI - https://aws.amazon.com/premiumsupport/knowledge-center/launch-instance-custom-ami/

Hope that helps.

profile pictureAWS
answered a year ago
  • Thanks for the reply. While I can see Export to EC2 as an option, not S3. Is it that first it is needed to export to EC2 and then S3? I have exported to EC2. Now, it appears EC2 file needs to be stored as S3.

  • The file will be need to be stored in S3 during the migration.

0

While Lightsail instances have a clear monthly pricing, EC2 instances I guess will be pricey. Also, my experience using Plesk Web Admin edition on EC2 has not been great. https://wpcosec.com/2021/04/05/plesk-obsidian-on-ubuntu-web-admin-edition-se-free-hosted-on-aws-ec2-consider-twice-before-using/

profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions