title: Can't retrieve Amazon Credentials
body: <p>I am trying to provide credentials for my Spring boot maven application hosted on the cloud (Pivotal Web Services) to be able to upload to Amazon S3. However, every time I try to get the credentials using:</p>
  
  <pre><code>DefaultAWSCredentialsProviderChain credentialProviderChain = new DefaultAWSCredentialsProviderChain();
  TransferManager transferManager = new TransferManager(credentialProviderChain.getCredentials());
  </code></pre>
  
  <p>It says </p>
  
  <pre><code>Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception 
  [Request processing failed; nested exception is com.amazonaws.AmazonClientException: Unable
  to load AWS credentials from any provider in the chain] with root cause
  2016-01-28T23:55:38.55+0000 [APP/0]      OUT com.amazonaws.AmazonClientException: 
  Unable to load AWS credentials from any provider in the chain
  </code></pre>
  
  <p>I'm a bit confused as to whether my credentials should be defined in a beans.xml or application.properties file. But I have tried both to no avail. Could someone point me in the right direction?</p>