aws s3 sync with named 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
export AWS_PROFILE=my-profile
echo $AWS_PROFILE
aws configure --profile