Skip to content

Instantly share code, notes, and snippets.


Carl Nordenfelt carlnordenfelt

  • by nordenfelt
  • Stockholm, Sweden
View GitHub Profile
carlnordenfelt /
Last active Jul 30, 2019
Easily swap between AWS Profiles without having to manage keys

Adding these scripts will give you the following aliases on your command line.

Note: the scripts are only tested on OSX

  • awsall - Lists all available AWS profiles
  • awswho - Let's you know what profile you are currently using
  • awsp profilename - Quickly swap to the provided profile name


  1. Create ~/.aws/ and copy the contents of the snippet.
You can’t perform that action at this time.