リージョン移行(US-EAST -> ap-northeast-1)の後に、インスタンスをAMI保存しようとしたらいくつかエラーが出たのでメモ。
> ec2-register ****/image.manifest.xml
するとエラー。
“Client.InvalidManifest: Invalid or unaccessible kernel id in ami manifest: aki-a209a2a3”
Kernel ID(aki-a209a2a3)にアクセス出来ない=リジョンが違ってる?
> ec2-register –region ap-northeast-1 ****/image.manifest.xml
すると今度は違うエラー。
“Client.InvalidManifest: HTTP 301 (Moved Permanently) response for URL http://****.s3.amazonaws.com:80/image.manifest.xml: check your manifest path is correct and in the correct region.”
「そんなBucket無いよ」って言ってるようなので、AWS ManagementConsoleでS3のBucketを確認したら…
Region:US Standard
ということで、このBucketを削除して、リージョンをしっかり指定して、
# ec2-upload-bundle –location ap-northeast-1 -b **** -m /mnt/image.manifest.xml
こんどは、
“ERROR: Error talking to S3: Server.OperationAborted(409): A conflicting conditional operation is currently in progress against this resource. Please try again.”
…orz…Bucketの名前を変えて再度。
# ec2-upload-bundle –location ap-northeast-1 -b ****b -m /mnt/image.manifest.xml
再度Bucketを確認。
Region:Tokyo
よし、こんどこそ!
> ec2-register –region ap-northeast-1 ****b/image.manifest.xml
IMAGE ami-********
成功っ!