title: How to fix the AWS Lambda nodejs8.10 is no longer supported error
body: <p>I have the following error message when my deployment script runs to deploy to aws lambda.  I've updated the node version as shown in the screen shot below, it confirms I've changed node to version 12.x.  </p>
  
  <p>Not sure why I'm still getting this error message? :-(</p>
  
  <p><a href="https://i.stack.imgur.com/qszBX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qszBX.png" alt="lambda panel showing node has been updated"></a></p>
  
  <p><strong>error message</strong></p>
  
  <blockquote>
    <p>Error: deploying: eu-west-1: updating function config: InvalidParameterValueException: The runtime parameter of nodejs8.10 is
    no longer supported for creating or updating AWS Lambda functions. We
    recommend you use the new runtime (nodejs12.x) while creating or
    updating functions.</p>
  </blockquote>
  
  <p><strong>deployment script</strong></p>
  
  <pre><code>#!/bin/bash
  yarn
  # deploy
  /tmp/up/up deploy staging
  </code></pre>
  
  <p><strong>possible solution?</strong></p>
  
  <p>I've seen this in documentation but having done the above I was under the impression I don't need to do this..?</p>
  
  <blockquote>
    <p>aws lambda update-function-configuration --function-name
     --layers
    arn:aws:lambda::800406105498:layer:nsolid-node-10:6
    --runtime provided</p>
  </blockquote>
  
  <p>Documentation available here -> <a href="https://aws.amazon.com/blogs/developer/node-js-6-is-approaching-end-of-life-upgrade-your-aws-lambda-functions-to-the-node-js-10-lts/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/developer/node-js-6-is-approaching-end-of-life-upgrade-your-aws-lambda-functions-to-the-node-js-10-lts/</a></p>