AWS Lambda
Developer Guide

Programming Model(Node.js)

AWS Lambda currently supports the following Node.js runtimes:

  • Node.js runtime v8.10 (runtime = nodejs8.10)

  • Node.js runtime v6.10 (runtime = nodejs6.10)

  • Node.js runtime v4.3 (runtime = nodejs4.3)*

  • Node.js runtime v0.10.42 (runtime = nodejs)*


    *Node v0.10.42 and Node v4.3 are currently marked as deprecated. For more information, see Runtime Support Policy. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs.8.10 or nodejs6.10) as soon as possible.

When you create a Lambda function, you specify the runtime that you want to use. For more information, see runtime parameter of CreateFunction.

The following sections explain how common programming patterns and core concepts apply when authoring Lambda function code in Node.js. The programming model described in the following sections applies to all supported runtime versions, except where indicated.