-
Notifications
You must be signed in to change notification settings - Fork 74
Make profile list interactive, to save typing #800
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I would like to be able to pull up aws-sso list but be able to, with a keyboard/mouse/tap/etc., select the profile to use.
Describe the solution you'd like
I made this PoC for bash/zsh, and it requires the fzf program to be installed:
function aws-sso-select() {
local aws_profile=$(aws-sso list | tail -n +5 | fzf --bind 'enter:execute(echo {7})+abort')
eval $(/usr/local/bin/aws-sso eval -p $aws_profile)
}Describe alternatives you've considered
The alternative is shown in the PoC above. It works but I'd like to see it natively supported.
Additional context
This simply saves me some time having to type aws-sso list, then aws-sso-profile, and pasting the profile. That's all. :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request