我正在尝试遵循本教程: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-quick-start.html
我有一个有效的S3存储桶,名称为:kevinngsw-awssam-quickstart
但是,当我尝试在项目文件夹中运行以下命令时:
sam package --s3-bucket kevinngsw-awssam-quickstart --output-template-file packaged.yaml
我收到以下错误:
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 :(得分:0)
通过更新awscli解决了问题。