2017-03-06 83 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創建更改集合 - >'執行更改集合'。 –

相關問題