我尝试使用aws cloudformation deploy选项运行--tags,但有以下错误:
Error in jenkins pipeline console:
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 subcommand: Invalid choice, valid choices are:
push | register
deregister | install 全员指挥:
sh "aws cloudformation deploy --region=us-east-1 --template-file template.yaml --stack-name template-stack --parameter-overrides parameter1=value1 --tags keyname=keyvalue"云格式模板已成功上传到删除-标记key=value上。
发布于 2019-01-22 10:17:42
发布于 2020-11-12 18:35:44
当我使用AWS命令得到"aws: error: argument subcommand: Invalid choice, valid choices are:“错误时,通常是因为对于cloudformation deploy,我的参数名是错误的,比如--template-body和--template-file。首先尝试删除任何无关的选项,以减少问题选项。
https://stackoverflow.com/questions/54302861
复制相似问题