bash key binding to fzf across aws profiles before running aws cli
We use aws profiles to restrict access and manage permissions on aws cli. As a result, we have a bit of explosion of AWS_PROFILES that we might inject into an aws
command. This helper will let use fzf to search and select from your profiles inline while on the bash command line.
This happens to be bound to Ctrl-b, so:
- Ctrl-b
- search for aws profile
- select enter to choose one
- finish typing aws command or alias.
Thanks to https://github.com/junegunn/fzf/