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

--

--

--

Founder of Nadtakan.com & Serverless Cloud developer. Follow me on Twitter https://twitter.com/nadtakanfuthoem

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Leetcode #1 Two Sum

Understanding this in JavaScript

useContext hook in React-Native

GraphQL Interfaces (and Union Types) with Prisma and Yoga

📦 Parcel v1.10.0 — Babel 7, Flow, Elm, and more! 🚀

10 Topics in a Day | Day 4| Javascript for Beginners

Handling duplicate bundling of MaterialUI with Webpack in monorepos

Specifying ES6 “import” and CommonJS, require()

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
Nadtakan Futhoem

Nadtakan Futhoem

Founder of Nadtakan.com & Serverless Cloud developer. Follow me on Twitter https://twitter.com/nadtakanfuthoem

More from Medium

The Serverless Bank Pt1.

Custom Lenses for the AWS Well-Architected Tool

The best way to batch write data from JSON file to dynamo db.

Serverless Testing, Part 1: What I forgot at the beginning