为什么导入vmdk文件到ec2时要两次提到ACCESS KEY和SECURITY KEY

Why we have to mention ACCESS KEY and SECURITY KEY two time when we import vmdk files to ec2

以下是我在网上找到的代码

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 documentation 的 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 days ] [--ignore-region-affinity] [--dry-run] [--no-upload] [--dont- verify-format]

也就是说,EC2 CLI 是一个遗留工具,在大多数情况下,已被统一的 AWSCLI 取代。