create aws credentials file code example

Example 1: download aws credentials file

#if you want to configure run
aws configure
#to get your aws access key & secret:
Go to: https://console.aws.amazon.com/iam/home#/users -> Select User -> Security Credentials -> Create Access Key (you always have to create a new one)

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