The Cloud Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.
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
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.
- Set the AMI permissions
After the AMI is created, select it in the AMI overview and press the ‘Permissions’ button:
- Add the AWS account ID of the ‘new’ account
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
- Select AMi with the new account
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
- Create new instance based on the AMI
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
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.
The Cloud Zone is brought to you in partnership with Mendix. Learn more about The Essentials of Digital Innovation and how it needs to be at the heart of every organization.
Published at DZone with permission of
, DZone MVB
Opinions expressed by DZone contributors are their own.