This question already has an answer here:
I am trying to configure the AWS CLI using a bash script. I have the below in my script and it will not set the values. When I echo out the variables names it just shows a blank line.
export AWS_ACCESS_KEY_ID=<key> export AWS_SECRET_ACCESS_KEY=<secret_key> export AWS_DEFAULT_REGION=<region>