EC2でus-west-1にあるサーバのAMIをとってap-northeast-1(東京リージョン)に上げる方法

Posted on 10月 28, 2011
Filed Under ec2 |

素直にec2-upload-bundleを走らせた時に出るwarningを読めってことでした

You are bundling in one region, but uploading to another. If the kernel
or ramdisk associated with this AMI are not in the target region, AMI
registration will fail.
You can use the ec2-migrate-manifest tool to update your manifest file
with a kernel and ramdisk that exist in the target region.
Are you sure you want to continue? [y/N]


ec2-bundle-vol -d /mnt –cert $cert –privatekey $privatekey –user $accountnumber -r x86_64 -e /ebs,/mnt

ec2-migrate-manifest –manifest /mnt/image.manifest.xml –cert $cert –privatekey $privatekey –region ap-northeast-1 –access-key $accesskey –secret-key $secretkey

ec2-upload-bundle –bucket $bucketname –access-key $accesskey –secret-key $secretkey –manifest /mnt/image.manifest.xml –location ap-northeast-1

ec2-register –region ap-northeast-1 $bucketname/image.manifest.xml -K $privatekey -C $cert -n $bucketname

Comments

Leave a Reply