add interactive profile and provider management - #1
Merged
Conversation
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.
Summary
awsb use) to every command that takes an optional provider/profile name:get,remove,rename, andproviders sign-in -s.profiles editandproviders editcommands to modify existing providers and profiles, with optional flags (--region,--url,--provider,--account-id,--role) to skip the prompts.addcommands interactive when one or more required flags are omitted.providers listresults alphabetically (profiles were already sorted).Why
Managing SSO providers and profiles currently forces users to remember exact names and pass them as arguments. Interactive selection makes everyday commands faster and less error-prone, while the new
editcommands allow fixing a misconfigured provider or profile without deleting and re-adding it.Testing
cargo fmt --checkcargo clippy -- -D warningscargo testcargo build~/.aws/config: add/list/edit/rename providers and profiles, confirming sorted list output and that editing a provider propagates region/URL to linked profiles.