title: Why my same ".s3cfg" file is not working on different machines
body: <p>I have server ec2 instance where I got error : </p>
  
  <pre><code>$ sh ami-backup.sh 
  ----------------------------------
     Thu Sep 24 10:37:47 UTC 2015   
  ----------------------------------
  Unable to locate credentials. You can configure credentials by running "aws configure".
  </code></pre>
  
  <p>Same script worked on my local machine so I coped ".s3cfg" to that server still it gives same error "Unable to locate credentials"</p>
  
  <p>On my local machine :</p>
  
  <pre><code>ashish@ashishk:~$ aws ec2 describe-instances --filters Name=vpc-id,Values=vpc-xxx |   awk '{ print $8 }' | sort -n   | grep  "i-" 
  i-127fb8df
  i-1effb6d3
  i-29efe0e4
  i-29fd04e4
  i-d5888618
  </code></pre>
  
  <p>On my server (ec2 instance) with same ".s3cfg" :</p>
  
  <pre><code>$ aws ec2 describe-instances --filters Name=vpc-id,Values=vpc-xxx |   awk '{ print $8 }' | sort -n   | grep  "i-" &gt; /tmp/instanceid.txt
  Unable to locate credentials. You can configure credentials by running "aws configure".
  </code></pre>
  
  <p>Why my same ".s3cfg" file is not working on different machines ! Please let me know what is wrong  here Or if I copy ".s3cfg" from machine to another machine will it work or i have to run "aws configure" &amp; configure on new machine also ?</p>