Search code examples
amazon-web-servicesaws-lambda

how to upgrade the node version of an aws lambda


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.


Solution

  • In console:

    • Go to your function
    • Go to the "Code" tab
    • Scroll down to "Runtime settings"
    • Click "Edit"

    Now you can select a later Node.js version