Last Updated: February 25, 2016
·
862
· dholdaway

to move a ec2 instance between regions

find your box

aws ec2 describe-instances --query 'Reservations[*].Instances[*].[Tags[0].Value,InstanceId,ImageId,InstanceType,State.Name]' --region eu-west-1 --output table

Create a image

aws ec2 create-image --instance-id <INSTANCEID> --name <ANYTHING>

Then

ec2-copy-image -r eu-west-1 --region us-west-1 -s <IMAGEID> -n "My new USA image" -d "U S A U S A from the uk " -c 550e8400-e29b-41d4-a716-46655440001