With the AWS CLI you can configure a number of named profiles, with credentials for different accounts. These are stored in ~/.aws/configuration
To show the currently in use profile, use
aws configure list
To view all configured profiles:
aws configure list-profiles
The default profile is used when you don’t specify a named profile. The others are used when you pass the –profile profilename parameter