How to Move Servers Between AWS Accounts
Join the DZone community and get the full member experience.
Join For Freethis 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
after selecting the ec2 instance create an ami out of it by selecting the corresponding action:
after selecting the ec2 instance create an ami out of it by selecting the corresponding action.
after the ami is created, select it in the ami overview and press the ‘permissions’ button:
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
log out of aws with the old account and login with the new one. now
select the ami option on the left side of menu and filter the ami’s on
‘private images’:
the final step is to create a new instance based on the ami. after it
is launched you have an exact copy of the same machine within the new
account:
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.
Comments