【发布时间】:2017-06-14 21:33:04
【问题描述】:
我尝试更新我的 aws lambda 函数代码,我的命令是:
aws lambda update-function-code --function-name GmobiLambdaFunction / --region ap-southeast-1 \ --zip-file fileb://home/user/Documents/projects/analytics/git_repo/gmobiLambda_function/GmobiLambda/target/GmobiLambda-0.0.1-SNAPSHOT.jar / --s3-bucket gmobilambdafunctn.s3-website.ap-south-1.amazonaws.com / --s3-key /UPLOAD --s3-object-version 2.0
但我收到以下错误:
aws: error: argument operation: Invalid choice, valid choices are:
add-event-source | delete-function
get-event-source | get-function
get-function-configuration | invoke-async
list-event-sources | list-functions
remove-event-source | update-function-configuration
upload-function | help
为什么 aws cli 甚至不显示更新功能代码?
【问题讨论】:
-
你的 aws cli 版本是多少?您很可能需要更新
-
我正在使用 aws-cli/1.6.6 Python/2.7.6 Linux/4.4.0-79-generic
-
相当老的一个,你至少需要 1.7,但最好升级到 1.11.x
-
会试试!!感谢更新
标签: aws-lambda aws-cli