aws credential profiles setup mac code example

Example 1: mac set up aws credentials

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

#Confirm
$ which aws
#/usr/local/bin/aws 
$ aws --version
#aws-cli/2.0.0 Python/3.7.4 Darwin/18.7.0 botocore/2.0.0

# Configure
aws configure

Example 2: 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