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?
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.
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.
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".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With