无法通过 AWS CLI 更新 lambda 运行时

Can not update lambda runtime through AWS CLI

我正在尝试使用 AWS CLI 通过以下命令更新 lambda 运行时:

aws lambda update-function-configuration --function-name <func_name> --runtime nodejs4.3

但是我得到一个错误:

Unknown options: --runtime, nodejs4.3

AWS版本如下: aws-cli/1.9.6 Python/3.5.0 Windows/7 botocore/1.3.6

该选项可从 aws cli 1.10.19 开始使用,因此您至少需要升级到这个较新的版本

feature:lambda: Added support for setting the function runtime as nodejs4.3, as well as updating function configuration to set the runtime.

在 Windows 上,下载并 运行 64 位安装程序 (https://s3.amazonaws.com/aws-cli/AWSCLI64.msi) or the 32 bit installer (https://s3.amazonaws.com/aws-cli/AWSCLI32.msi)。