set aws cli default profile code example Example 1: aws cli config profile aws configure --profile Example 2: aws default profile export AWS_PROFILE=user1