title: Unable to locate credentials in boto3 AWS
body: <p>I'm trying to view S3 bucket list through a python scripts using boto3. Credential file and config file is available in the C:\Users\user1.aws location. Secret access and access key available there for user &quot;vscode&quot;. But unable to run the script which return exception message as</p>
  <pre><code>&quot;botocore.exceptions.NoCredentialsError: Unable to locate credentials&quot;.
  </code></pre>
  <p>Code sample follows,</p>
  <pre><code>import boto3
  s3 = boto3.resource('s3')
  for bucket in s3.buckets.all():     
      print(bucket.name)
  </code></pre>
  <p>Do I need to specify user mentioned above (&quot;vscode&quot;) ?</p>
  <p>Copied the credential and config file to folder of python script is running. But same exception occurs.</p>