0

I'm trying to update lambda runtime, using AWS CLI, with the following command:

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

But I get an error:

Unknown options: --runtime, nodejs4.3

AWS version is as follows: aws-cli/1.9.6 Python/3.5.0 Windows/7 botocore/1.3.6

9
  • What shell are you running aws cli from? Have you tried putting the --runtime operand before --function-name? Commented Sep 27, 2016 at 18:51
  • Please run aws --version and edit your question to include the output from that command. Commented Sep 27, 2016 at 19:02
  • @BaileyS Changing options order still result in the same error. Commented Sep 27, 2016 at 19:58
  • @MarkB I've added aws version to question. Commented Sep 27, 2016 at 19:59
  • Have you tried updating to the latest version of the AWS CLI? Commented Sep 27, 2016 at 20:00

1 Answer 1

2

The option is available from aws cli 1.10.19 so you need to upgrade at least to this version of newer

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

On Windows, download and run either the 64 bit installer (https://s3.amazonaws.com/aws-cli/AWSCLI64.msi) or the 32 bit installer (https://s3.amazonaws.com/aws-cli/AWSCLI32.msi).

Sign up to request clarification or add additional context in comments.

1 Comment

Ok, thank you) Maybe there is smth with update process on my machine, so I failed to obtain the latest version when upgraiding through console.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.