build Failed Error: ‘nodejs14.x’ runtime is not supported

  1. Including flag --use-container , this flag will download an image from ECR public registry, then build your application inside docker without having to configure your local node version on your machine. This image is own by Amazon Linux and same version inside lambda itself.
  2. An out-dated SAM version might not include the current node version which is why you are getting an error, so to fix this, try to reinstall a current SAM version.
brew install aws-sam-cli
sam --version
nvm install node 14
Nadtakan Futhoem — Sr. software engineer

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store