see aws configuration code example
Example 1: aws cli profiles list
aws configure list [--profile profile-name]
Example 2: aws cli config profile
aws configure --profile
aws configure list [--profile profile-name]
aws configure --profile