我尝试使用 --tags
选项运行 aws cloudformation deploy
,但出现以下错误:
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"
删除 --tags key=value 后 Cloudformation 模板已成功上传。
最佳答案
关于jenkins - aws cloudformation 部署在添加 --tags 时失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54302861/