EBS AMI’SMigrating EBS AMI’s between AWS Regions                                                 Rob Linton               ...
How to migrate EBS AMI’s between regions?      AMI                                            AMI                Volume   ...
StepsStep 1 – Starting with an AMI in US-EASTStep 2 – Create a Volume from the AMI Root snapshotStep 3 – Mount the volume ...
Step 1 – Starting with an AMI in US-EAST                                             AMI                                  ...
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 2 – Create a Volume from the AMI Root snapshot                                                          AMI          ...
Rob Linton www.Jasondb.comrobl@jasondb.com
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 3 – Mount the volume on a running EC2 instance                             EC2                             Micro     ...
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 4 – Configure a receiving instance in the destination region    EC2                                                   ...
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 5 – Copy the private key to the source server    EC2                                                                E...
Rob Linton www.Jasondb.comrobl@jasondb.com
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 5 – Copy the private key to the source server                                               ssh login commandssh -i p...
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 6 – Copy the volume from the source server to the destination server.     EC2                                        ...
Step 6 – Copy the volume from the source server to the destination server.    EC2                                         ...
Step 7 – Create an AMI in the destination region    EC2    Micro  Instance                    Volume                   Sna...
Rob Linton www.Jasondb.comrobl@jasondb.com
Step 7 – Create an AMI in the destination region    EC2    Micro  Instance                    Volume                   Sna...
Rob Linton www.Jasondb.comrobl@jasondb.com
These defaults may not work        in all cases!                                     Rob Linton                           ...
Rob Linton www.Jasondb.comrobl@jasondb.com
QUESTIONS?                    Rob Linton              www.Jasondb.com             robl@jasondb.com
Upcoming SlideShare
Loading in...5
×

PRESENTATION - Migrating AWS EBS backed AMI's between Regions

2,072

Published on

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.

Published in: Technology, Sports
1 Comment
3 Likes
Statistics
Notes
  • Hi Rob,
    This (and the associated word document) came in very timely - I found some automated services, but they were very buggy or just plain broken.

    At least with your method, I know what is happening and once I've done it a couple of times, I'll investigate scripting it.

    thanks
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
2,072
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
46
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

PRESENTATION - Migrating AWS EBS backed AMI's between Regions

  1. 1. EBS AMI’SMigrating EBS AMI’s between AWS Regions Rob Linton www.Jasondb.com robl@jasondb.com
  2. 2. How to migrate EBS AMI’s between regions? AMI AMI Volume Volume Snapshot Snapshot Running Running Instance InstanceUS-WEST US-EAST Rob Linton www.Jasondb.com robl@jasondb.com
  3. 3. StepsStep 1 – Starting with an AMI in US-EASTStep 2 – Create a Volume from the AMI Root snapshotStep 3 – Mount the volume on a running EC2 instanceStep 4 – Configure a receiving instance in the destination regionStep 5 – Copy the private key to the source serverStep 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. 4. Step 1 – Starting with an AMI in US-EAST AMI US-EAST Rob Linton www.Jasondb.com robl@jasondb.com
  5. 5. Rob Linton www.Jasondb.comrobl@jasondb.com
  6. 6. Step 2 – Create a Volume from the AMI Root snapshot AMI Volume Snapshot US-EAST Rob Linton www.Jasondb.com robl@jasondb.com
  7. 7. Rob Linton www.Jasondb.comrobl@jasondb.com
  8. 8. Rob Linton www.Jasondb.comrobl@jasondb.com
  9. 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
  10. 10. Rob Linton www.Jasondb.comrobl@jasondb.com
  11. 11. Step 4 – Configure a receiving instance in the destination region EC2 EC2 Micro Micro Instance Instance US-WEST US-EAST EBS Volume EBS /dev/sdf Volume /dev/sdfDestination Source Rob Linton www.Jasondb.com robl@jasondb.com
  12. 12. Rob Linton www.Jasondb.comrobl@jasondb.com
  13. 13. Step 5 – Copy the private key to the source server EC2 EC2 Micro Micro Instance Instance US-WEST US-EAST EBS Volume EBS /dev/sdf Volume /dev/sdfDestination Source Rob Linton www.Jasondb.com robl@jasondb.com
  14. 14. Rob Linton www.Jasondb.comrobl@jasondb.com
  15. 15. Rob Linton www.Jasondb.comrobl@jasondb.com
  16. 16. Step 5 – Copy the private key to the source server ssh login commandssh -i ping-us-east.pemroot@ec2-50-17-68-0.compute-1.amazonaws.com scp copy commandscp -i ping-us-east.pem ping-us-west.pemroot@ec2-50-17-68-0.compute-1.amazonaws.com:/tmp Rob Linton www.Jasondb.com robl@jasondb.com
  17. 17. Rob Linton www.Jasondb.comrobl@jasondb.com
  18. 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/sdfDestination Source Rob Linton www.Jasondb.com robl@jasondb.com
  19. 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. 20. Step 7 – Create an AMI in the destination region EC2 Micro Instance Volume Snapshot Create a snapshot US-WEST EBS Volume /dev/sdfDestination Rob Linton www.Jasondb.com robl@jasondb.com
  21. 21. Rob Linton www.Jasondb.comrobl@jasondb.com
  22. 22. Step 7 – Create an AMI in the destination region EC2 Micro Instance Volume Snapshot AMI Create an AMI US-WEST EBS Volume /dev/sdfDestination Rob Linton www.Jasondb.com robl@jasondb.com
  23. 23. Rob Linton www.Jasondb.comrobl@jasondb.com
  24. 24. These defaults may not work in all cases! Rob Linton www.Jasondb.com robl@jasondb.com
  25. 25. Rob Linton www.Jasondb.comrobl@jasondb.com
  26. 26. QUESTIONS? Rob Linton www.Jasondb.com robl@jasondb.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×