From fd7103a56d27e67458332215c3e16e8b1f973abb Mon Sep 17 00:00:00 2001 From: Justin Schoeff Date: Thu, 9 Jul 2026 15:38:53 -0500 Subject: [PATCH] Correct lambda-worker README.md The lambda-worker README provides an AWS lambda command, but was missing a required parameter. This updates the README to correctly provide the `Code` parameter with dummy content be overridden using the provides deploy-lambda.sh script as directed in README. --- lambda-worker/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lambda-worker/README.md b/lambda-worker/README.md index a7f9d963..e9934553 100644 --- a/lambda-worker/README.md +++ b/lambda-worker/README.md @@ -46,16 +46,23 @@ you can find [here](https://docs.temporal.io/production-deployment/worker-deploy ### 1. Create a lambda function for your TypeScript worker -Use either the AWS web UI or CLI to create a Node.js runtime Lambda function. Ex: +Use either the AWS web UI or CLI to create a Node.js runtime Lambda function. The +`create-function` call requires initial code, so seed it with an empty placeholder zip — +the real worker code is uploaded later in [step 5](#5-deploy-the-lambda-function) via +`deploy-lambda.sh`. Ex: ```bash +# Create a placeholder zip to bootstrap the function (contents are overwritten in step 5) +zip placeholder.zip src/index.ts + aws lambda create-function \ --function-name my-temporal-worker \ --runtime nodejs22.x \ - --handler lib/index.handler \ + --handler index.handler \ --role arn:aws:iam:::role/my-temporal-worker-execution \ --timeout 600 \ - --memory-size 256 + --memory-size 256 \ + --code ZipFile=fileb://placeholder.zip ``` ### 2. Configure Temporal connection