我尝试使用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"
在删除--tags key = value时,Cloudformation模板已成功上传。