AWS Lambda
Developer Guide

Programming Model (Node.js)

AWS Lambda currently supports the following Node.js runtimes:

  • 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 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. You can request a one-time extension until June 30, 2017, by going to the Lambda console and following the instructions provided. Failure to migrate or get extension will result in any invocations of functions written in the Node v0.10.42 runtime returning an invalid parameter value error. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime. For information about programming model differences in the v0.10.42 runtime, see Using the Earlier Node.js Runtime v0.10.42.

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 apply to both versions, except where indicated.