Skip to content

Lambda

The lambda.invoke action allows you to execute an AWS Lambda function.

Set kind = "lambda.invoke" in your TOML file.

FieldTypeRequiredDescription
function_namestringYesThe name or ARN of the function to invoke.
invocation_typestringNoRequestResponse (default), Event, or DryRun.
qualifierstringNoVersion or alias to invoke (e.g., prod, 1).
client_contextmapNoUp to 3583 bytes of base64-encoded JSON context data.
version = "1.0"
kind = "lambda.invoke"
description = "Sync invocation of my-function"
[lambda]
function_name = "my-function"
invocation_type = "RequestResponse"
qualifier = "prod"
[client_context]
custom_app_id = "myna-cli"
[payload]
data = """
{
"key1": "value1",
"key2": "{{dynamic_value}}"
}
"""

The action outputs the function’s response payload, status code, and executed version.