Lambda Invoke
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
| Parameter | Type | Description |
|---|---|---|
function_name | string | Lambda function name or ARN to invoke. |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id | string | - | AWS account ID. Defaults to stage account. |
region | string | - | AWS region. Defaults to stage region. |
payload | string | - | JSON payload to send to the Lambda function. |
invocation_type | enum: 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"}'