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 usingawsp profilename
- Quickly swap to the provided profile nameawssso profilename
- Similar toawsp
but specifically for IAM Identity Center users (AWS SSO)
- Create ~/.aws/alises.sh and copy the contents of the snippet.
- Update ~/.bash_profile with the contents of that snippet
- Ensure that you configure the AWS CLI using ~/.aws/config & ~/.aws/credentials. See examples.