title: Why does download_file throw a task timeout error using Boto3's S3 client?
body: <p>I am developing a Python Lambda function.</p>
  <p>The documentation suggests that we can download files like this:</p>
  <pre><code>s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
  </code></pre>
  <p>I have a bucket and a zip file inside the bucket. So what do I put as the object name when there's no folder?</p>
  <p>I tried these:</p>
  <pre><code>s3.download_file('testunzipping','DataPump_10000838.zip','DataPump_10000838.zip')
  
  s3.download_file('testunzipping','DataPump_10000838.zip')
  </code></pre>
  <p>But I get a time-out error in both cases.</p>
  <pre><code>  &quot;errorMessage&quot;: &quot;2021-10-17T14:51:34.889Z 4257cbc1-2dd0-4fb9-b147-0dffce1f97a1 Task timed out after 3.06 seconds&quot;
  </code></pre>
  <p>However, this works just fine:</p>
  <pre><code>lst = s3.list_objects(Bucket='testunzipping')['Contents']
  </code></pre>
  <p>There also doesn't seem to be any permission issues as the Lambda's execution role has a policy giving it the <code>s3:GetObject</code> permission:</p>
  <pre><code>{
      &quot;Version&quot;: &quot;2012-10-17&quot;,
      &quot;Statement&quot;: [
          {
              &quot;Sid&quot;: &quot;ExampleStmt&quot;,
              &quot;Action&quot;: [
                  &quot;s3:GetObject&quot;
              ],
              &quot;Effect&quot;: &quot;Allow&quot;,
              &quot;Resource&quot;: [
                  &quot;arn:aws:s3:::testunzipping&quot;
              ]
          }
      ]
  }
  </code></pre>
  <p>The role also has S3FullAccess.</p>
  <p>What is the issue?</p>