Add --endpoint flag to agentcore invoke to target specific runtime endpoints
- Lingua principale
- TypeScript
- Stelle
- 290
- Fork
- 96
- Merge medio
- 1g 2h
- PR unite (30g)
- 183
Descrizione
## 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal comando agentcore invoke e analizza deployed-state.json per capire come i nomi degli endpoint di runtime vengono associati agli ARN. Aggiungi il supporto per --endpoint insieme a --target, quindi verifica che agentcore invoke --endpoint prod "Hello" risolva l’endpoint denominato e vi instradi l’invocazione; anche l’help della CLI dovrebbe elencare il nuovo flag.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 68/100