- List all local AWS profiles (entry points to your credential list)
aws configure list-profiles- Remove a specific profile (manually delete its section)
nano ~/.aws/credentials- Use a specific profile in
boto3
import boto3
sess = boto3.Session(profile_name="myuser", region_name="us-east-1")
print(sess.client("sts").get_caller_identity())