aws cli set default profile code example
Example 1: echo aws profile
export AWS_PROFILE=my-profile
echo $AWS_PROFILE
Example 2: aws cli config profile
aws configure --profile
Example 3: aws default profile
export AWS_PROFILE=user1
Example 4: aws configure change default profile
$ aws configure
AWS Access Key ID [****************FFGG]: ZZZZZZCCCDDDEEEFFFZZ
AWS Secret Access Key [****************mmmn]: zzzzzzcccdddeeefffggghhhiiijjjkkklllmmzz
Default region name [us-east-1]: us-west-2
Default output format [text]: json