feat(status): display runtime invocation URL for deployed agents#775
Merged
aidandaly24 merged 1 commit intoaws:mainfrom Apr 6, 2026
Merged
Conversation
Show the runtime invocation URL in agentcore status output for each deployed agent. The URL is computed from the runtime ARN and target region, and displayed in CLI text output, JSON output, and the TUI ResourceGraph component. URL format: https://bedrock-agentcore.{region}.amazonaws.com/runtimes/{encodedArn}/invocations Closes aws#716 Constraint: URL is only available when both targetConfig and runtimeArn exist Rejected: Reuse existing buildInvokeUrl from agentcore.ts | includes ?qualifier=DEFAULT which is for API invocation, not display Confidence: high Scope-risk: narrow
Contributor
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-775-tarball/aws-agentcore-0.6.0.tgz |
jesseturner21
approved these changes
Apr 6, 2026
Contributor
jesseturner21
left a comment
There was a problem hiding this comment.
lgtm. One question about entry.identifier but it doesnt even have to do with this pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Show the runtime invocation URL in
agentcore statusoutput for each deployed agent. The URL is computed from the runtime ARN and target region usingencodeURIComponent, and displayed across all three output surfaces:URL:line below each deployed agent entryinvocationUrlfield in resource entries (for scripting)URL:line below theID:line, dimColor styledURL format:
https://bedrock-agentcore.{region}.amazonaws.com/runtimes/{encodedArn}/invocationsThe URL is computed before the live runtime status API call, so it is available even when the status fetch fails. It is only set for deployed agents with a known
runtimeArn— local-only and pending-removal agents show no URL.Changes
status/constants.ts: AddedbuildRuntimeInvocationUrl(region, runtimeArn)helperstatus/action.ts: AddedinvocationUrlfield toResourceStatusEntry, computed during agent enrichmentstatus/command.tsx: CLI text rendering of URL below deployed agentsResourceGraph.tsx: TUI rendering of URL viaResourceRowcomponentRelated Issue
Closes #716
Documentation PR
N/A — no doc changes needed; the URL is self-documenting in the CLI output.
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsAdditional Testing
buildRuntimeInvocationUrl— correct URL with encoded ARNbuildRuntimeInvocationUrl— handles different regionshandleProjectStatus— sets invocationUrl on deployed agentshandleProjectStatus— does not set invocationUrl on local-only agentshandleProjectStatus— still sets invocationUrl when runtime status fetch failshandleProjectStatus— does not set invocationUrl on pending-removal agentsagentcore status— URL displayed correctlyagentcore status --jsonincludesinvocationUrlfieldChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.