aws / aws/amazon-q-developer-cli

Feature Request: Add q configure command for persistent auth settings

Aperta
#2,380 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently, users must specify --identity-provider and --region parameters every time they run q login.

Request: Add a q configure command to store SSO start URL and region persistently, similar to AWS CLI profiles. This would allow q login to work without specifying parameters each time, just like aws sso login.

Proposed example workflow:

```bash
q configure # Store settings once
q login # Use stored settings automatically
```

This would provide the same seamless authentication experience that AWS CLI offers with its profile system. The most ideal outcome would be that `~/.aws/config` profiles be used for q cli logins/profiles or at least that the same file can be used for both the q developer cli and the aws cli/sdks.

My current workflow already requires `aws sso login` which I have automated out of my way. Being prompted for free or pro license, start url and region on every q cli login is distracting at best. I have a workaround at the moment where I have hacked together a shell alias to deal with q login on shell init if there is not an active session. This is a fairly hacky workaround but it may help others:

```bash
alias qlogin='q login --license pro --identity-provider https://d-.awsapps.com/start --region us-east-1'

function check_q_logged_in() {
if q whoami > /dev/null 2>&1; then
echo "Q CLI Already Authenticated"
else
echo "Authenticating Q CLI"
qlogin
fi
}

check_q_logged_in
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando l’entry point di q login e il modo in cui gestisce attualmente --identity-provider e --region. Confronta il comportamento richiesto con i profili AWS CLI in ~/.aws/config; il lavoro è completato quando q configure può salvare la SSO start URL e la regione necessarie e q login può riutilizzarle senza questi parametri.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, rust
Ambito
authentication, cli, cloud
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.