title: Amazon Web Services: NoCredentialsError: Unable to locate credentials
body: <p>I am using amazon web services cli. I use a makefile to to build my lambda project and upload it to aws lambda. I am on a windows machine and using powershell to call make.</p>
  
  <p>I try to delete my lambda function with the following lines</p>
  
  <pre><code>AWS_PATH = /cygdrive/c/Users/TestBox/AppData/Roaming/Python/Scripts/aws
  AWS_WIN_PATH = $(shell cygpath -aw ${AWS_PATH})
  AWS_REGION = eu-west-2
  
  lambda_delete:
      $(AWS_WIN_PATH) lambda delete-function --function-name LambdaTest --region $(AWS_REGION) --debug
  </code></pre>
  
  <p>I get this error..</p>
  
  <p>NoCredentialsError: Unable to locate credentials
  Unable to locate credentials. You can configure credentials by running "aws configure".</p>
  
  <p>Running aws configure list prints out a valid default profile.</p>
  
  <p>I think the problem is because i am using gnu make installed by cygwin on a windows machine. Using powershell to call make.</p>
  
  <p>So the path to credentials looks like this "cygdrive/c/users/testbox/.aws/credentials" instead "c:\users\testbox.aws\credentials", when ~/.aws/credentials is evaluated by aws. I think :)</p>
  
  <p>I had the same problem with the path to aws itself and had to use $(shell cygpath -aw ${AWS_PATH}) to convert it to a path windows python could use.</p>
  
  <p>Is there any way to pass the credentials directly to the lambda delete-function or indirectly through a path to a file? I cant seem to think of a way because the code that searches for the credentials is internal to botocore. </p>
  
  <p>Is there a way around this that you know off?</p>