【发布时间】:2022-01-15 02:24:21
【问题描述】:
我正在尝试从现有的带有标签的 EC2 实例创建一个新的 AMI。我尝试了以下命令,但它不起作用:
aws ec2 create-image --instance-id i-xxxxxxxxxxxxx --name "TEST_AMI" --no-reboot --tag-specifications 'ResourceType=instance,Tags=[{Key=name,Value=TEST_AMI}
并返回以下错误:
**usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
Unknown options: --tag-specifications, ResourceType=instance,Tags=[{Key=name,Value=TEST_AMI}]**
我只需要在一个命令中完成这两项任务。
【问题讨论】:
标签: linux amazon-web-services amazon-ec2 aws-cli