Skip to content

Instantly share code, notes, and snippets.

View carlnordenfelt's full-sized avatar

Carl Nordenfelt carlnordenfelt

  • by nordenfelt
  • Stockholm, Sweden
View GitHub Profile
@carlnordenfelt
carlnordenfelt / AWS_Credentials.md
Last active August 27, 2025 06:18
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. Note that the list is based on the .aws/credentials file.
  • awswho - Lets you know what profile you are currently using
  • awssso profilename - Quickly signin using AWS IAM Identity Center. (Recommended)
    • Note: This will attempt open a browser window for sign-in confirmation.
  • awsp profilename - Similar to awssso but for use with IAM Users and IAM Assume Role