title: "The AWS Access Key Id you provided does not exist in our records." when trying to use AWS CLI
body: <p>I'm trying to access my S3 Bucket through the cli. I have everything setup up such as having a <code>credentials</code> file where I'm doing this cli work, making sure my environment variables for <code>$AWS_SECRET_ACCESS_KEY</code> and <code>$AWS_ACCESS_KEY_ID</code> have the right things in it, and manually setting them using <code>aws configure</code>.</p>
  
  <p><code>credentials</code> contains the following information, all blanked out that is:</p>
  
  <pre><code>[sts]
  aws_access_key_id = ASIAXXXXXXXXXXXXXXXX
  aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXX
  aws_security_token = XXXXXXXXXXXXXXXXXXXXXX
  aws_session_expiration = 2018-11-03T00:21:25+0000
  aws_session_token = XXXXXXXXXXXXXXXXXXXXXXX
  [default]
  aws_access_key_id = ASIAXXXXXXXXXXXXXXXXXXX
  aws_secret_access_key = XXXXXXXXXXXXXXXXXXX
  </code></pre>
  
  <p>Also just to make sure I have everything setup, I also ran <code>aws configure</code>:</p>
  
  <pre><code>(venv) ~/.aws $ aws configure list
        Name                    Value             Type    Location
        ----                    -----             ----    --------
     profile                &lt;not set&gt;             None    None
  access_key     ****************XXXX shared-credentials-file
  secret_key     ****************XXXX shared-credentials-file
      region  
  
            us-east-1      config-file    ~/.aws/config
  </code></pre>
  
  <p>However, when I run the following, it says I have this error:</p>
  
  <pre><code>(venv) ~/.aws $ aws s3 sync s3://mybucket/my/path ~/my/path
  fatal error: An error occurred (InvalidAccessKeyId) when calling the ListObjectsV2 operation: The AWS Access Key Id you provided does not exist in our records.
  </code></pre>
  
  <p>I have no idea how to get around this and exhausted all my Googling options. </p>