Hurricane Sandy and AWS: Migrating Octopart Out of us-east-1 in a Hurry
octopart.com
octopart.com
"EjectorSeat" - EjectorSeat is the hip cool way to create a current, usable, set of scripts which can move any AWS/EC2/Linode/Heroku/... (start with AWS/EC2) instance from where it is, to somewhere else. By using EjectorSeat all of the changes and specs you have on your install are automatically documented into its configuration and data location databases so that when the time comes to pull the yellow and black handles, you will know that your install is being migrated, and better yet, when its done migrating one push of a button and blam! its up and running.
-----------
It seems like this should be possible to package up (it will take a bit of work of course) but its the 'copper' option (of the silver/bronze/gold nomenclature) for disaster preparedness. Basically you don't have the funds to maintain two instances all the time, this lets you move the one you have when you need to.
Of course like real ejector seats it will have failure conditions (like flying inverted at 50', bad time to eject) but it could provide an ops guy with a bit of piece of mind.
Hint, hint…
--
† I too did an us-east-1 to us-west-2 move on Monday, and it was unfun.
I'd love to hear of an s3 based approach.
https://cloudyscripts.com/tool/show/5
You can also use the APIs to do that S3 copy I mentioned. Here are one of the many write ups of that technique.
If I were going to build this, I'd take a look at Blueprint, since it (at least in theory) can reverse engineer what's installed on a running server.
I would be curious if there was an open source tool that copies your current security groups and writes them to other regions.
I had a similar idea for a while. The memories of trying to get EC2 nodes manually configured, and it isn't easy at first. Also some painful memories migrating clustered servers (Linux running H-Sphere Control Panel) which didn't exactly fail gracefully.
Even with puppet/chef and other tools, migration takes time and planning. EC2 node architecture is not persistent, and should factor in failure of a node at any time.
Moving between vendors is always going to require more testing/configuring/etc then just a script to move the assets over.
Cross-region snapshot mirroring would be a great enhancement feature for AWS.
Not true. I've done this using Ylastic. See http://ylastic.com/features.html:
"Migrate EBS linux snapshots between regions."
"Migrate EBS windows snapshots between regions."
Takes a few minutes to kick off and does it all for you.
http://elastic-security.com/2011/02/10/how-to-copy-an-ebs-ba...
http://serverfault.com/questions/336321/how-do-i-migrate-ama...
I'm 95% sure they are just putting a UI over that lengthy process. But as I say, I've tried it and it worked perfectly for me. This is their process:
http://blog.ylastic.com/migrating-snapshots-between-ec2-regi...
So I did it by hand - that way. It it’d be pretty easy to tell if this was the case, because it really wouldn’t be fast….
There are several options
1. Manually - http://alestic.com/2010/10/ec2-ami-copy
2. Automatically via Scripts a) migrate-ebs-image.pl - http://search.cpan.org/~lds/VM-EC2/bin/migrate-ebs-image.pl b) CloudyScript Migrate SnapShot - https://cloudyscripts.com/tool/show/4 c) CloudyScript Migrate AMI - https://cloudyscripts.com/tool/show/5
3. Commercial Services a) http://ylastic.com/ b) RightScale
* ylastic is really cheap at $25 / month * I used the perl script migrate-ebs-image.pl, super simple to install and use. * CloudyScripts has open sourced their Ruby gem so you can build on top of it. They also have a free web form you can just use (but may not be secure enough). But you can launch their AMI in your own instance which should be secure
Hope that helps for next time!