aws-profile-picker
is a simple CLI built to assist switching AWS profiles. It includes:
- Dropdown list of all configured AWS profiles in
$HOME/.aws/config
- Fuzzy search for all profiles
- No additional shell is being created - the environment variable
AWS_PROFILE
is set in the current shell
- Download the latest release.
- Unpack the archive
cd scripts
sh ./install.sh
- Add an alias to your shell configuration (.bshrc, .zshrc, etc.)
This is required so no additional shell has to be created.
alias awsp="source _awsp"
Supplying no argument will open the interactive prompt.
$ awsp
Alternatively you can also directly pass a profile to search for as an argument. The profile that matches the argument the most using the Levinsthein algorithm will be set. If no profile is found, the prompt opens.
$ awsp client-proj
In the release archive, there's an uninstall script
cd scripts
sh ./uninstall.sh
- Remove the alias from your shell configuration file.
The alias awsp="source _awsp"
idea comes straight from johnnyopao/awsp. It's a very similar tool, however we really wanted fuzzy search :)