Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the experimental AWS Agentcore compute-config command additions.
No open issues 🎉
What changed in this PR
Adds experimental AWS Agentcore compute-config commands to the Worker Deployment Version tree introduced in #1235, while leaving existing commands unchanged.
Changes:
- Adds
aws-agentcore createandupdatewith endpoint, role, scaling-group, and no-sync scaler options. - Reuses shared helpers for version creation and targeted scaling-group updates.
- Adds command help and tests covering request payloads, partial updates, and validation errors.
| File | Description |
|---|---|
internal/temporalcli/commands.yaml |
Defines Agentcore commands, options, help, and examples. |
internal/temporalcli/commands.worker.deployment.version.aws_agentcore.go |
Implements command handlers and provider configuration validation. |
internal/temporalcli/commands.worker.deployment.version.aws_agentcore_test.go |
Tests creation, updates, scaler resets, and error handling. |
internal/temporalcli/commands.gen.go |
Registers generated Agentcore commands and flag bindings. |
Review effort: Balanced
a35a6d8 to
0ea30c8
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ks-temporal
left a comment
There was a problem hiding this comment.
Hi, Approving with two suggestions - (1) I added some comment in 1262, which are related to difference between agentcore and gcp-run, so you may want to check that first before merging this. (2) Naming "AWS Bedrock Agentcore" vs. "Amazon Bedrock Agent[c=>C]ore" in description and help text.
Related issues
Follows #1235.
What changed?
Adds
aws-agentcoreto the experimentaltemporal worker deployment version compute-configtree from #1235, for AWS Bedrock Agentcore Runtimes. The existing commands are unchanged.Existing commands and their new equivalents
create-version --aws-agentcore-*version compute-config aws-agentcore create--scaling-groupand the scaler flags. If the Version exists, the error points toupdate.update-version-compute-config --aws-agentcore-*version compute-config aws-agentcore update--scaling-group, and the scaler flags on their own change only the scaler settings. If the Version is missing, the error points tocreate.describe,removeanddeleteare the shared commands from #1235.The Agentcore commands work like the
aws-lambdaones:--endpoint-arn, plus the role flags shared withaws-lambda:--assume-role-arn,--assume-role-external-id,--skip-role-and-external-id.--scaling-group(defaultdefault) names the scaling group to create or update.--scale-up-backlog-thresholdand--max-worker-lifetime-ms. Only the ones passed are sent.Checklist
Design
temporal <noun> <verb>structure (e.g.temporal workflow start)--search-attribute, bad:--index-field)(Experimental)incommands.yamlHelp text (see style guide at the top of
commands.yaml)--namespace, not-n), one flag per lineYourXxxform (YourWorkflowId,YourNamespace)Behavior
Tests
SharedServerSuite)Manual tests
I ran 11 scenarios against a Temporal Cloud test cell with a real AWS Bedrock Agentcore Runtime, running the existing and new commands side by side. The new commands behaved as expected: for the same inputs they succeeded or failed like the existing ones, and
version describeprinted the same output asdescribe-versionin text and JSON. On each create and update, the server checked the runtime endpoint and IAM role with AWS before accepting them.Setup: a Worker Deployment
YourDeploymentName, an Agentcore Runtime endpoint, and an IAM role that the Temporal server can assume.Happy path
Scaler flags on their own replace the scaler settings and keep the provider:
Passing the provider flags again resets the scaler settings:
Error cases
The existing commands rejected the same inputs. Only the wording differs where the CLI validates the flags, e.g.
missing required AWS Agentcore provider detail: endpoint_arnfor--endpoint-arn is required when changing the provider.compute-config removeasks before removing every scaling group:Risks
None known.