From 40b56b769332a0993f8bbca281494dafbef02c9d Mon Sep 17 00:00:00 2001 From: zirkelc Date: Thu, 26 Mar 2026 15:45:41 +0100 Subject: [PATCH] fix: move durable execution docs to remote invoke section Moves the "Function invocation with durable execution name" section from the local invoke area to after the Example data.json block, where the other remote invoke examples live. Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/cli-reference/invoke.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/cli-reference/invoke.md b/docs/cli-reference/invoke.md index c7974b262..4780be4d1 100644 --- a/docs/cli-reference/invoke.md +++ b/docs/cli-reference/invoke.md @@ -110,6 +110,16 @@ the specified/deployed function. } ``` +#### Function invocation with durable execution name + +```bash +serverless invoke --function functionName --durable-execution-name order-12345 +``` + +This example invokes a durable function with a unique execution name. If you invoke the same function with the same execution name again, Lambda returns the cached result from the previous execution instead of re-executing the function. This enables idempotent invocations for reliable workflow orchestration. + +**Note:** Durable execution names must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores. See the [Functions guide](../guides/functions.md#aws-lambda-durable-functions) for more information on configuring durable functions. + ### Local function invocation with custom context ```bash @@ -125,16 +135,6 @@ serverless invoke local --function functionName \ This example will pass the json context in the `lib/context.json` file (relative to the root of the service) while invoking the specified/deployed function. -### Function invocation with durable execution name - -```bash -serverless invoke --function functionName --contextPath lib/context.json --durable-execution-name order-12345 -``` - -This example invokes a durable function with a unique execution name. If you invoke the same function with the same execution name again, Lambda returns the cached result from the previous execution instead of re-executing the function. This enables idempotent invocations for reliable workflow orchestration. - -**Note:** Durable execution names must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores. See the [Functions guide](../guides/functions.md#aws-lambda-durable-functions) for more information on configuring durable functions. - ### Limitations Currently, `invoke local` only supports the Node.js, Python, Java and Ruby runtimes.