Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
22.5k Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

AWS Lambda

Use this node to invoke an AWS Lambda function synchronously and use its response as the outgoing message — for example, running complex ML inference on device data, enriching telemetry by calling a Lambda that queries an external database, or delegating business logic to serverless functions.

  • Function name — required. Lambda function name or ARN. Supports templatization.
  • Qualifier — function version or alias. Default: $LATEST.
  • AWS Access Key ID / Secret Access Key / Region — required. IAM credentials with Lambda invoke permissions.
  • Connection timeout (s) — timeout for establishing the connection. Default: 10.
  • Request timeout (s) — timeout for the Lambda response. Default: 5.
  • Tell failure if function throws exception — when enabled, routes via Failure if the Lambda response contains a non-null FunctionError field.

The AWS request ID is added to message metadata as requestId.

  1. Invoke the Lambda function synchronously (RequestResponse) with the incoming message data as the payload.
  2. On success: replace the outgoing message data with the Lambda response body; add requestId to metadata; route via Success.
  3. If tellFailureIfFuncThrowsExc is enabled and the response contains FunctionError: route via Failure.
  4. On connection/request timeout, invalid credentials, or function not found: route via Failure.
Connection Condition
Success Lambda invoked and responded successfully. Outgoing message data = Lambda response.
Failure Timeout, invalid credentials, function not found, Lambda error (when configured), or unexpected error.

Originator: DEVICE | Data: { "temperature": 25.5, "deviceId": "dev-001" }.

{
"functionName": "arn:aws:lambda:us-east-1:123456789:function:EnrichTelemetry",
"qualifier": "$LATEST",
"accessKey": "AKIAIOSFODNN7EXAMPLE",
"secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"region": "us-east-1",
"connectionTimeout": 10,
"requestTimeout": 5,
"tellFailureIfFuncThrowsExc": true
}

Result: Lambda response replaces message data; requestId added to metadata. Routes via Success.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TbAwsLambdaNodeConfiguration",
"type": "object",
"required": ["functionName", "accessKey", "secretKey", "region"],
"additionalProperties": false,
"properties": {
"functionName": { "type": "string" },
"qualifier": { "type": "string" },
"accessKey": { "type": "string" },
"secretKey": { "type": "string" },
"region": { "type": "string" },
"connectionTimeout": { "type": "integer" },
"requestTimeout": { "type": "integer" },
"tellFailureIfFuncThrowsExc": { "type": "boolean" }
}
}