以下是我在网上找到的代码
ec2-import-volume xxx.vmdk -f vmdk -b <S3 bucket name> -O
<ACCESS KEY> -W <SECURITY KEY> -o <ACCESS KEY> -w <SECURITY KEY>
-z <your zone, ex:-ap-southeast-1a> --region <your region, ex:-
ap-southeast-1>
以下是我在网上找到的代码
ec2-import-volume xxx.vmdk -f vmdk -b <S3 bucket name> -O
<ACCESS KEY> -W <SECURITY KEY> -o <ACCESS KEY> -w <SECURITY KEY>
-z <your zone, ex:-ap-southeast-1a> --region <your region, ex:-
ap-southeast-1>
我在EC2 CLI 文档的 ec2-import-volume 描述中没有看到这一点。
语法记录为:
ec2-import-volume disk_image -f file_format [-s volume_size] -z availability_zone [-b s3_bucket_name] [-o owner] -w secret_key [--prefix prefix] [--manifest-url url] [-d description] [ --x 天] [--ignore-region-affinity] [--dry-run] [--no-upload] [--dont-verify-format]
也就是说,EC2 CLI 是一个遗留工具,在大多数情况下,已被统一的AWSCLI取代。