how to upgrade the node version of an aws lambda

Viewed 5357

In AWS I have a lambda function that is on node version 10, but I want to update its run time version - which command do I run to make this happen e.g. wanting to update runtime to version 12? I am aware there is already a post at AWS Lambda function upgrade from NodeJs version 6.10 to 8.10 version, but I would like to know how to do this via a command and not the console.

4 Answers

In console

  • go to function
  • scroll down to "Runtime settings" -> edit

if you want to update lambda with a specific node run time version i think this should help, this uses aws cli ( use updated version of aws cli)

   aws lambda update-function-configuration \
    --function-name  my-function \
    ----runtime nodejs10.x

see API docs for more

Yes, no one going to scroll the page, so it's hidden.

AWS lambda runtime settings

Related