在 aws-cli/1.10.56 上找不到 aws cloudformation 包命令

aws cloudformation package command not found on aws-cli/1.10.56


我是 AWS 新手,一直负责研究无服务器部署。

我正在关注以下示例: http://docs.aws.amazon.com/lambda/latest/dg/serverless-deploy-wt.htmlhttp://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html 并且正在经历上述情况。似乎“aws cloudformation”根本没有“package”命令。

这是我的 "aws cloudformation package" 命令的输出:

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:

cancel-update-stack |
continue-update-rollback |
create-change-set | 
create-stack |
delete-change-set | 
delete-stack |
describe-account-limits | 
describe-change-set |
describe-stack-events | 
describe-stack-resource |
describe-stack-resources | 
describe-stacks |
estimate-template-cost | 
execute-change-set |
get-stack-policy | 
get-template |
get-template-summary | 
list-change-sets |
list-stack-resources | 
list-stacks |
set-stack-policy | 
signal-resource |
update-stack | 
validate-template |
wait | 
help

非常感谢任何建议!提前致谢!

aws cloudformation package 已添加到 AWS CLI 1.11.19。有关详细信息,请参阅 1.11.19 changelog

只需从 1.10.56 更新并重试,因为您当前使用的旧版本没有新命令。

旁白:这 AWS CLI Changelog seems more up-to-date than the official release notes 页;我不确定这是不一致还是他们刚刚停止支持它们。