Невозможно импортировать мой vmdk в EC2

572
RAJ KUMAR

Я пытаюсь импортировать мой vmdk в EC2 как экземпляр, используя корзину S3.
Я использую этот синтаксис.

ec2-user@ip-10-0-x-x ~$ ec2-import-instance disk1.vmdk -f VMDK -t m1.xlarge -a x86_64 -b import-raj -o XXXXXXACCESS KEY -w XXXXXXXSECRETKEY -O ACESSKEYXXXXXXX -W SECRETKEYXXXXXXXXXXXXXXXXX Requesting volume size: 90 GB  ERROR: Unable to create signed manifest URL. Bucket import-raj is not in us-east-1 region, it's in eu-west-1 

Можете ли вы предоставить мне точный синтаксис, который будет использоваться

1

1 ответ на вопрос

1
Burgi

The error message suggests you are not in the correct region.

According to the AWS documentation you need to specify a zone. You do this with the option flag -z zonename. In your instance I think it would be -z eu-west-1, I am not familiar enough with the Amazon platform to confirm the zone.

According to further research in addition to specifying the zone you need to specify a region as well using --region. Again I am not familiar with the regions available, you would have to check these for your needs.

The full command would look like this:

ec2-import-instance disk1.vmdk -f VMDK -t m1.xlarge -a x86_64 -z eu-west-1 --region eu-west-1 -b import-raj -o XXXXXXACCESS KEY -w XXXXXXXSECRETKEY -O ACESSKEYXXXXXXX -W SECRETKEYXXXXXXXXXXXXXXXXX 

From the documentation for setting a zone:

-z, --availability-zone availability_zone

The Availability Zone for the converted VM.

Type: String

Valid values: Use ec2-describe-availability-zones for a list of values

Default: None

Required: No

Example: -z us-east-1a

From the documentation for setting a region:

--region region

The region. Overrides the default region, the region specified by the EC2_URL environment variable, and the URL specified by the -U option.

Default: The region specified by the EC2_URL environment variable, or us-east-1 if EC2_URL isn't set.

ec2-import-instance disk1.vmdk -f VMDK -t m1.xlarge -a x86_64 -z eu-west-1 -b import-raj -o Accesskey -w секретный ключ -O ключ доступа -W секретный ключ Размер запрашиваемого тома: 90 ГБ ОШИБКА: невозможно создать подписанный URL-адрес манифеста. Bucket import-raj находится не в регионе us-east-1, а в eu-west-1, результат тот же. RAJ KUMAR 7 лет назад 0
Возможно, вам также понадобится взглянуть на команду `--region region`. Burgi 7 лет назад 0