check profiles in aws cli code example Example: aws cli profiles list aws configure list [--profile profile-name]