title: Laravel Storage Filesystem and Amazon S3 gives CredentialsException
body: <p>I'm trying to use <a href="https://laravel.com/docs/5.1/filesystem#retrieving-files" rel="nofollow noreferrer">Filesystem</a>, the implementation of league/flysystem-aws-s3-v3 with Laravel 5.1. but I can get the files from S3.</p>
  
  <p>So, I coded this:</p>
  
  <pre><code>$s3 = Storage::disk('s3');
  $imageName = Employee::filePath() . $employee-&gt;id . '.pdf';
  
  if (Storage::disk('s3')-&gt;exists($imageName)) {
      return response()-&gt;download(Storage::disk('s3')-&gt;get($imageName));
  }
  </code></pre>
  
  <p>Then I get the follow error:</p>
  
  <blockquote>
    <p>CredentialsException in InstanceProfileProvider.php line 79:
    Error retrieving credentials from the instance profile metadata server. (cURL error 28: Connection timed out after 1001 milliseconds (see <a href="http://curl.haxx.se/libcurl/c/libcurl-errors.html" rel="nofollow noreferrer">http://curl.haxx.se/libcurl/c/libcurl-errors.html</a>))</p>
  </blockquote>
  
  <p>The credential are set on config/filesystems.php, I know are good because I can put files there.</p>
  
  <p>Do you have any idea?</p>
  
  <p>Thanks in advance.</p>