temporal worker deployment create and create-version commands
Introduced 2026-04-29 · score 0.90
HOW TO USE IT
To predefine a Worker Deployment and add a version from a repository workflow, run `temporal worker deployment create`, then `temporal worker deployment create-version` with the deployment name and build ID. For AWS Lambda compute configuration, include the Lambda ARN and the required role and external ID flags.
temporal worker deployment create --name <deployment-name>temporal worker deployment create-version --namespace <namespace> --deployment-name <deployment-name> --build-id <build-id> --aws-lambda-function-arn <lambda-function-arn> --aws-lambda-assume-role-arn <assume-role-arn> --aws-lambda-assume-role-external-id <external-id>WHY THIS HELPS
Create or create a version of a Worker Deployment from a repository workflow.
REQUIREMENTS AND LIMITATIONS
- Version: v1.7.0
- --name (required): Worker Deployment name for `create`.
- --namespace: Namespace; shown in the documented `create-version` example, but not listed as a required option for that command.
- --deployment-name (required): Worker Deployment name for `create-version`.
- --build-id (required): Build ID of the Worker Deployment Version.
- --aws-lambda-function-arn: Lambda function ARN to invoke when there are no active pollers for task queue targets in the Deployment.
- --aws-lambda-assume-role-arn: Role ARN the Temporal server assumes to invoke Lambda; required with `--aws-lambda-function-arn` unless `--aws-lambda-skip-role-and-external-id` is passed.
- --aws-lambda-assume-role-external-id: External ID enforced by the role trust policy; required with `--aws-lambda-function-arn` unless `--aws-lambda-skip-role-and-external-id` is passed.
- --aws-lambda-skip-role-and-external-id: When using a Lambda ARN, omit both assume-role flags if this flag is passed. This choice is mutually exclusive with supplying either assume-role flag.
- Prerequisite: Predefine the Deployment with `create` before calling `create-version`.
- Commands manage Worker Deployments via direct gRPC API calls.
FIRST-PARTY EVIDENCE
- https://github.com/temporalio/cli/releases/tag/v1.7.0
- https://github.com/temporalio/documentation/blob/main/docs/cli/command-reference/worker.mdx
Check the installed version and the source before using it. Entry JSON