【发布时间】:2020-02-28 17:10:18
【问题描述】:
我已经安装并配置了 AWS CLI,我的 windows 10 机器和 AWS EC2 Linux 机器在法兰克福 aws 区域也有一个 AWS 翻译的批处理作业。我正在关注此文档以使用 CLI 启动批量翻译过程。 https://docs.aws.amazon.com/translate/latest/dg/translate-dg.pdf
现在,假设我正在使用这个示例命令
aws translate describe-text-translation-job --job-id xxxxxxx
我到处都收到这个错误
[ec2-user@ip-xx-xx-xx-xx ~]$ aws translate describe-text-translation-job --job-id xxxxxxx
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
delete-terminology | get-terminology
import-terminology | list-terminologies
translate-text | help
除了帮助之外,它只显示 5 个有效选择,但根据文档,它应该更多 https://docs.aws.amazon.com/cli/latest/reference/translate/index.html#cli-aws-translate
为什么我没有得到这些选项
describe-text-translation-job
start-text-translation-job
stop-text-translation-job
list-text-translation-jobs
【问题讨论】:
-
您安装了哪个版本的 AWS CLI?可能是您使用的是不包含“翻译”命令的旧版本。通常,当我们看到该错误时,这意味着紧跟在“aws”之后的单词无法识别。