aws / aws/amazon-q-developer-cli
Feature Request: Add q configure command for persistent auth settings
- Vorherrschende Sprache
- Rust
- Sterne
- 2k
- Forks
- 439
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Einstiegspunkt von q login und die aktuelle Verarbeitung von --identity-provider und --region nachzuverfolgen. Vergleiche das gewünschte Verhalten mit AWS CLI-Profilen in ~/.aws/config; fertig ist die Änderung, wenn q configure die benötigte SSO start URL und Region speichern kann und q login sie ohne diese Parameter wiederverwenden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, rust
- Bereich
- authentication, cli, cloud
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100