![Page 2: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/2.jpg)
Rob Lintonwww.Jasondb.com
US-EASTUS-WEST
AMI
Running Instance
VolumeSnapshot
AMI
Running Instance
VolumeSnapshot
How to migrate EBS AMI’s between regions?
![Page 3: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/3.jpg)
Rob Lintonwww.Jasondb.com
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
Steps
![Page 6: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/6.jpg)
Rob Lintonwww.Jasondb.com
US-EAST
AMI
VolumeSnapshot
Step 2 – Create a Volume from the AMI Root snapshot
![Page 9: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/9.jpg)
Rob Lintonwww.Jasondb.com
US-EAST
AMI
Step 3 – Mount the volume on a running EC2 instance
EC2Micro
Instance
EBSVolume/dev/sdf
Source
![Page 11: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/11.jpg)
Rob Lintonwww.Jasondb.com
US-EASTUS-WEST
EC2Micro
Instance
EBSVolume/dev/sdf
Source
EC2Micro
Instance
EBSVolume/dev/sdf
Destination
Step 4 – Configure a receiving instance in the destination region
![Page 13: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/13.jpg)
Rob Lintonwww.Jasondb.com
US-EASTUS-WEST
EC2Micro
Instance
EBSVolume/dev/sdf
Source
EC2Micro
Instance
EBSVolume/dev/sdf
Destination
Step 5 – Copy the private key to the source server
![Page 16: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/16.jpg)
Rob Lintonwww.Jasondb.com
scp -i ping-us-east.pem ping-us-west.pem [email protected]:/tmp
ssh -i ping-us-east.pem [email protected]
Step 5 – Copy the private key to the source server
ssh login command
scp copy command
![Page 18: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/18.jpg)
Rob Lintonwww.Jasondb.com
US-EASTUS-WEST
EC2Micro
Instance
EBSVolume/dev/sdf
Source
EC2Micro
Instance
EBSVolume/dev/sdf
Destination
Step 6 – Copy the volume from the source server to the destination server.
![Page 19: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/19.jpg)
Rob Lintonwww.Jasondb.com
EC2Micro
Instance
EBSVolume/dev/sdf
EC2Micro
Instance
EBSVolume/dev/sdf
dd gzip ssh gzip dd
SourceDestination
Step 6 – Copy the volume from the source server to the destination server.
Breakdown of the steps
$> dd if=/dev/sdf |gzip -c -1 | ssh -i ping-us-west.pem [email protected] "gunzip -c -1 | dd of=/dev/sdf"
![Page 20: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/20.jpg)
Rob Lintonwww.Jasondb.com
US-WEST
VolumeSnapshot
Step 7 – Create an AMI in the destination region
EC2Micro
Instance
EBSVolume/dev/sdf
Destination
Create a snapshot
![Page 22: PRESENTATION - Migrating AWS EBS backed AMI's between Regions](https://reader033.vdocuments.us/reader033/viewer/2022052906/558cc01dd8b42a6f788b45e1/html5/thumbnails/22.jpg)
Rob Lintonwww.Jasondb.com
US-WEST
VolumeSnapshot
Step 7 – Create an AMI in the destination region
EC2Micro
Instance
EBSVolume/dev/sdf
Destination
Create an AMIAMI