aws / aws/agentcore-cli

Add --endpoint flag to agentcore invoke to target specific runtime endpoints

Open
#986 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
283
Forks
95
Avg merge
1d 2h
Merged PRs (30d)
183

Description

## Summary

Users can create and deploy runtime endpoints (named version aliases) but cannot invoke them individually from the CLI. `agentcore invoke` only supports `--target` for deployment targets, with no way to address a specific endpoint.

## Current behavior

```bash
agentcore invoke --help | grep endpoint
# (nothing)
```

## Expected behavior

```bash
agentcore invoke --endpoint prod "Hello"
```

Should resolve the endpoint ARN from `deployed-state.json` and route the invocation to that specific endpoint.

## Context

Runtime endpoints let users pin traffic to specific runtime versions (e.g., `prod` → v3, `staging` → v5). Without `--endpoint` on invoke, users can create endpoints but not test them from the CLI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.