title: A client error (400) occurred when calling the HeadObject operation: Bad Request Completed 1 part(s) with ... file(s) remaining
body: <p>I'm trying to copy a file from a private s3-bucket via cli to my ec2 instance. The ec2 is in the same region as the bucket and has the following IAM role attached (AmazonS3FullAccess):</p>
  <pre><code>{
  &quot;Version&quot;: &quot;2012-10-17&quot;,
  &quot;Statement&quot;: [
     {
       &quot;Effect&quot;: &quot;Allow&quot;,
       &quot;Action&quot;: &quot;s3:*&quot;,
       &quot;Resource&quot;: &quot;*&quot;
     }
   ]
  }
  </code></pre>
  <p>But the command:</p>
  <pre><code>aws s3 cp s3://[BUCKETNAME]/index.html /var/www/html/
  </code></pre>
  <p>fails with the error:</p>
  <blockquote>
  <p>A client error (400) occurred when calling the HeadObject operation: Bad Request Completed 1 part(s) with ... file(s) remaining.</p>
  </blockquote>
  <p>I already double checked the spelling of the bucket name...</p>