title: aws ruby sdk - read a pretty large file from S3
body: <p>I am trying to read around 1.5GB size from s3 using ruby sdk for aws.
  S3 gem is - gem 'aws-sdk' ( <a href="https://github.com/aws/aws-sdk-ruby" rel="nofollow noreferrer">https://github.com/aws/aws-sdk-ruby</a> )</p>
  <pre><code>most_recent_s3_object = s3_resource.bucket(bucket_name).objects.max_by(&amp;:last_modified)
  </code></pre>
  <p>Here most_recent_s3_object class is Aws::S3::ObjectSummary
  When I do <code>most_recent_s3_object.get</code> I get broken pipe error.
  Is there a way around to get this file in a whole for this size?</p>