How to Move Servers Between AWS Accounts
Join the DZone community and get the full member experience.Join For Free
this is a short post about how to move your ( ec2 ) server from one account to another. i got in this situation a few ago and wanted to move our wordpress server from one account to another. of course i could setup a new clean wordpress instance (like i described here ) and load an wordpress xml export into the new environment. but luckily it is much easier then that, with less risk of errors. the trick here is to create a personal ami under the old account and share that ami to the new account. with the new account you initiate a new ec2 instance based on the shared ami. here are all necessary steps including screen shots:
- select the ec2 instance in the ‘old’ account
- set the ami permissions
- add the aws account id of the ‘new’ account
- select ami with the new account
- create new instance based on the ami
to give the new account access to this specific ami add it’s aws account id to this list:
you can find your account id here
of course it is a good idea to create (regular) backups of the new instance and shutdown the instance in the old account so you don’t have to pay for that one anymore.
Published at DZone with permission of $$anonymous$$. See the original article here.
Opinions expressed by DZone contributors are their own.