This presentation was shown at the Australian AWS User group in September in Melbourne and is the presentation side of the step by step guide for migrating AWS EBS backed AMI's between regions. This presentation is designed to be shown in conjunction with the tutorial document.
PRESENTATION - Migrating AWS EBS backed AMI's between Regions
1. EBS AMI’S
Migrating EBS AMI’s between AWS Regions
Rob Linton
www.Jasondb.com
robl@jasondb.com
2. How to migrate EBS AMI’s between regions?
AMI AMI
Volume Volume
Snapshot Snapshot
Running Running
Instance Instance
US-WEST US-EAST
Rob Linton
www.Jasondb.com
robl@jasondb.com
3. Steps
Step 1 – Starting with an AMI in US-EAST
Step 2 – Create a Volume from the AMI Root snapshot
Step 3 – Mount the volume on a running EC2 instance
Step 4 – Configure a receiving instance in the destination region
Step 5 – Copy the private key to the source server
Step 6 – Copy the volume from the source server to the destination server.
Step 7 – Create an AMI in the destination region
Rob Linton
www.Jasondb.com
robl@jasondb.com
4. Step 1 – Starting with an AMI in US-EAST
AMI
US-EAST
Rob Linton
www.Jasondb.com
robl@jasondb.com
9. Step 3 – Mount the volume on a running EC2 instance
EC2
Micro
Instance
AMI
EBS
US-EAST
Volume
/dev/sdf
Source Rob Linton
www.Jasondb.com
robl@jasondb.com
18. Step 6 – Copy the volume from the source server to the destination server.
EC2 EC2
Micro Micro
Instance Instance
US-WEST US-EAST
EBS
Volume EBS
/dev/sdf Volume
/dev/sdf
Destination Source Rob Linton
www.Jasondb.com
robl@jasondb.com
19. Step 6 – Copy the volume from the source server to the destination server.
EC2 EC2
dd gzip ssh gzip dd
Micro Micro
Instance Instance
Breakdown of the steps
$> dd if=/dev/sdf |gzip -c -1 | ssh -i ping-
EBS
Volume
us-west.pem root@ec2-50-18-32-121.us- EBS
Volume
/dev/sdf west-1.compute.amazonaws.com "gunzip -c -1 | /dev/sdf
dd of=/dev/sdf"
Destination Source Rob Linton
www.Jasondb.com
robl@jasondb.com
20. Step 7 – Create an AMI in the destination region
EC2
Micro
Instance
Volume
Snapshot Create a snapshot
US-WEST
EBS
Volume
/dev/sdf
Destination
Rob Linton
www.Jasondb.com
robl@jasondb.com
22. Step 7 – Create an AMI in the destination region
EC2
Micro
Instance
Volume
Snapshot AMI
Create an AMI
US-WEST
EBS
Volume
/dev/sdf
Destination
Rob Linton
www.Jasondb.com
robl@jasondb.com