title: AWS CLI does not use credentials set with environment variables
body: <p>I have a simple Test.bat file that is as follows</p>
  
  <pre><code>set AWS_ACCESS_KEY=xxx
  set AWS_ACCESS_KEY=yyy
  set AWS_DEFAULT_REGION=us-west-1
  
  aws ec2 describe-instances
  </code></pre>
  
  <p>When I run this batch file, it is listing the instances from my production account. When I checked my user profile location at C:\Users\testuser.aws , the  credentials file has the accesss key and secret key of my production account.</p>
  
  <p>My question is per the aws documentation (<a href="http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html" rel="nofollow">http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html</a>)  environment variables takes precedence over the credentials file. But why does this not work for me ? I would want the instances to be listed for the account specified in the bat file.</p>
  
  <p>Thank you</p>