2017-03-06 40 views
1


AWS cloudformation包命令对AWS-CLI/56年1月10日

没有发现我是一个AWS小白和已经工作,调查无服务器部署。

我下面的例子: http://docs.aws.amazon.com/lambda/latest/dg/serverless-deploy-wt.html 以及 http://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html 和我遇到以上。看起来“aws cloudformation”根本没有“”命令。

这里是我的 “AWS cloudformation包” 命令的输出:

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 

任何意见,不胜感激!先谢谢你!

+0

在我看来,我的aws-cli是1.10。[*]版本。我已经使用“卷曲方法”来更新aws-cli,并且出现了“aws cloudformation package”。 –

回答

3

aws cloudformation package已添加到AWS CLI 1.11.19中。请参阅1.11.19 changelog了解更多详情。

只需从1.10.56开始更新并再试一次,因为您当前使用的旧版本不会有新命令。

另外:这个AWS CLI Changelog似乎比官方的release notes页更新;我不确定这是不一致的,还是他们刚刚停止支持它们。

+0

谢谢你,@Anthony Neace。这里只需要注意一下:在SAM模板生态系统中,'aws cloudformation package'通常跟着'aws cloudformation deploy'。如果您的打包模板大于50KB(?),这将不起作用。我们必须这样做:'package' - >'将模板上传到S3' - >'从s3创建更改集合 - >'执行更改集合'。 –

相关问题