ec2-import-instance 不适用于 Windows
ec2-import-instance doesn't work on Windows
我正在尝试使用 ec2-import-instance
命令导入 vmdk 映像,但 returns 出现以下错误:
usage: aws [options] [parameters] aws: error:
argument command: Invalid choice, valid choices are:
autoscaling | cloudformation cloudfront
| cloudhsm cloudsearch |
cloudsearchdomain etc..
我的命令在这里:
aws ec2-import-instance "C:\AWS-TEST-VM\aws-test-vm-01\aws-test-vm-01-disk1.vmdk" -f vmdk -t m1.small -a x86_64 -b bucket_name -o Access Key –w Secret+Access+Key -p Linux --ignore-region-affinity
您似乎混淆了两个不同的命令行界面。
'older-style' 命令有带连字符的单词,例如:
ec2-import-instance -t instance_type [-g group] -f file_format -a architecture [-p platform_name] -b s3_bucket_name ...
较新的AWS Command-Line Interface (CLI)使用aws <service> <command> <parameters>
的语法,例如:
aws ec2 import-image [--description <value>] [--disk-containers <value>] [--license-type <value>] ...
参见:
我正在尝试使用 ec2-import-instance
命令导入 vmdk 映像,但 returns 出现以下错误:
usage: aws [options] [parameters] aws: error: argument command: Invalid choice, valid choices are:
autoscaling | cloudformation cloudfront
| cloudhsm cloudsearch | cloudsearchdomain etc..
我的命令在这里:
aws ec2-import-instance "C:\AWS-TEST-VM\aws-test-vm-01\aws-test-vm-01-disk1.vmdk" -f vmdk -t m1.small -a x86_64 -b bucket_name -o Access Key –w Secret+Access+Key -p Linux --ignore-region-affinity
您似乎混淆了两个不同的命令行界面。
'older-style' 命令有带连字符的单词,例如:
ec2-import-instance -t instance_type [-g group] -f file_format -a architecture [-p platform_name] -b s3_bucket_name ...
较新的AWS Command-Line Interface (CLI)使用aws <service> <command> <parameters>
的语法,例如:
aws ec2 import-image [--description <value>] [--disk-containers <value>] [--license-type <value>] ...
参见: