Migrate AWS EC2 machine using Snapshot Sharing

Author - Navneet Kashyap
15.12.2017
|
0 Comments
|

How to migrate an EC2-machine from one AWS account to another aws account?

Solution: To migrate EC2 machine, there are following main steps:

  1.  Create Snapshot of the existing machine drives.
  2.  Migrate the EC2 machine.
  3.  Upgrade/downgrade migrated machine configuration.


Step 1: Create Snapshot of the existing machine drives.

Follow the steps given below to create a snapshot of existing machine drive you have inside AWS:

1.1.   Log on to AWS console account.

1.2.   Note down the Kernel ID from EC2 machine :

1

1.3.   Take a snapshot of EC2 root drive as per the screenshots :

2
3

Above step will take a while depending on the size of volume for taking a snapshot. Check the progress bar:

4


Step 2: Migrate the machine: First share the snapshot with another aws account.

2.1.   Click on Snapshot option :

5

2.2.  Right Click on the desired snapshot ID and select Modify permissions :

6

2.3.  Select the option whether to share it publicly or you can share it in private :

7

2.4.  Add the valid AWS Account Number in the provided field in order to share in private :

8


Step 3: Upgrade/downgrade Migrated machine configurations:
You can modify some of the machine configurations like disk size, machine type etc by using below steps.

3.1.   Log on to other AWS console account.

3.2.  Click on Snapshots option :

9

3.3.  Now Click on Owned by me option then choose Private Snapshots :

10

3.4.  List of all snapshots (shared in private) will be displayed in the list now.

3.5.  Create Image from a shared snapshot, (right click) Enter correct details :

11

3.6.  Click on AMIs in IMAGES section :

12

3.7.  Right click on the Image you just created above :

13

3.8.  Click on Launch and choose optimum level of machine you require :

14

3.9.  Click next to set configuration for Instance :

15

3.10.  Click next and choose the size of a disk for Instance ( you can increase or decrease the size as per requirement but make sure Data size must be less than allocated disk size) :

16

3.11.  Click next and add tags (like Name for Instance) :

17

3.12.  Click next and set security group for your Instance (select ports that need to be opened for specific IP address or IP pool) :

18

3.13.  Click Review and Launch and your Instance will be ready in 4-5 minutes.

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *