Skip to content

coopdigity/awsprof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS CLI Profile Switcher

If you are like us you likely have a half dozen AWS CLI profiles configured on your machine. Using AWS named profiles is a great help but, dang, wouldn't it be nice to be able to very quickly switch from one profile to another? And, my, oh my, wouldn't it be great if there was some kind of auto-complete feature to help you remember the names of your profiles??

Look no further (unless you are using Windows -- you need more help than I can provide)! awsprof is just the little script you need!

Assumptions

  1. Your AWS credentials are stored at ~/.aws/credentials
  2. You are using a Linux shell that permits functions (such as Bash or Zsh)
  3. complete is installed

Installation

  1. Copy awsprof-completer.bash to your ~/.aws/ folder
  2. Edit your .bashrc or .zshrc and add the function from the .rc file to it (at the end is likely fine).
  3. Run source ~/.bashrc or source ~/.zshrc to update your current shell.

Usage

  1. Type: awsprof {profile name} to switch profiles.
  2. Type: awsprof <TAB> to get a list of current profiles.
  3. Type: awsprof coop<TAB> to auto-complete coopdigity for example ;)

About

AWS Profile Switcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages