最近公司里在测试AWS(亚马逊)的云计算服务,这几天遇到一个问题搞得非常郁闷。在创建ami镜像的时候总是报一个错误,确切的是在打包完镜像之后,使用ec2-upload-bundle 命令上传的时候出现的问题,错误如下:
 
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]n
 
 
这个错误是因为在创建s3的 bucket name的时候创建的s3存储区域(这里的区域指的是地区机房:欧洲、美国东部、美国西部等机房的区域)和你的实例所在的区域不同造成的。我的计算机实例所在区域实在 us-east 区域,而在注册用户的时候不记得选择了什么选项,结果默认情况下s3所在的区域被创建到了欧洲区域,导致以上问题的出现,只要把那个目录删掉重新创建一个目录就可以了。我是使用的一个firefox插件S3Fox Organizer创建的,记得在创建的时候要看清楚你的计算机实例所在的区域。
aws