title: AWS CLI not able to load credentials when using Jenkins
body: <p>I have EC2 where i have installed AWS CLI using xxxjenkins user. Below are the steps I followed to install awscli:</p>
  
  <pre><code>   curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
     unzip awscliv2.zip
     sudo ./aws/install
  
     which aws
     /usr/local/bin/aws
  </code></pre>
  
  <p>I am able to run awscli commands when i login into the instance.</p>
  
  <p>But when jenkins server SSH into the same instance (for CICD) using same user xxxjenkins and run awscli command I get this error:</p>
  
  <blockquote>
    <p>Unable to locate credentials. You can configure credentials by running "aws configure".</p>
  </blockquote>