首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >aws cloudformation在添加--标记时失败

aws cloudformation在添加--标记时失败
EN

Stack Overflow用户
提问于 2019-01-22 07:03:09
回答 2查看 554关注 0票数 2

我尝试使用aws cloudformation deploy选项运行--tags,但有以下错误:

代码语言:javascript
复制
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    

全员指挥:

代码语言:javascript
复制
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上。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-01-22 10:17:42

可能你用的是旧版本的aws。这个功能直到2018年1月才被合并(参见拉-request)。因此,请检查您的版本和更新,如果需要。

票数 0
EN

Stack Overflow用户

发布于 2020-11-12 18:35:44

当我使用AWS命令得到"aws: error: argument subcommand: Invalid choice, valid choices are:“错误时,通常是因为对于cloudformation deploy,我的参数名是错误的,比如--template-body--template-file。首先尝试删除任何无关的选项,以减少问题选项。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54302861

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档