Skip to main content

Lambda Invoke

Stable

Type: DEVRAMPS:LAMBDA:INVOKE

Category: script

Version: 1.0.0


Description

Invoke an AWS Lambda function and return its response as step output.

Triggers a single invocation of an AWS Lambda function and captures the response. By default, uses synchronous RequestResponse invocation which waits for the function to complete and returns the result as step output. Can also be configured for asynchronous Event invocation which fires and forgets. The Lambda response payload is available to subsequent steps via output references.

Parameters

Required Parameters

ParameterTypeDescription
function_namestringLambda function name or ARN to invoke.

Optional Parameters

ParameterTypeDefaultDescription
account_idstring-AWS account ID. Defaults to stage account.
regionstring-AWS region. Defaults to stage region.
payloadstring-JSON payload to send to the Lambda function.
invocation_typeenum: RequestResponse | Event"RequestResponse"Invocation type: RequestResponse (sync, default) or Event (async fire-and-forget).

Example Usage

- type: DEVRAMPS:LAMBDA:INVOKE
name: Run Data Transform
id: transform
params:
function_name: data-transform-function
payload: '{"source": "s3://my-bucket/input.json"}'