title: AWS CLI in Windows EC2 cannot use role to access S3
body: <p>I am very new to AWS. I created an IAM role which has full access to <strong>S3</strong>. I assigned this role to a <strong>Windows Server</strong> EC2 instance. I then installed <strong>CLI</strong> on that instance. I then remoted into that instance using RDP, and started a CMD windows, and typed in </p>
  
  <pre><code>aws s3 ls
  </code></pre>
  
  <p>It complained that </p>
  
  <pre><code>Unable to locate credentials. You can configure credentials by running "aws configure".
  </code></pre>
  
  <p>Now that this EC2 has been assigned the role that has full access to S3, why can't I directly access S3?</p>