Ruby AWS::S3::S3Object (aws-sdk): Is there a method for streaming data as there is with aws-s3?

Question:

In aws-s3, there is a method (AWS::S3::S3Object.stream) that lets you stream a file on S3 to a local file. I have not been able to locate a similar method in aws-sdk.

i.e. in aws-s3, I do:

The AWS::S3:S3Object.read method does take a block as a parameter, but doesn’t seem to do anything with it.

Answer:

The aws-sdk gem now supports chunked reads of objects in S3. The following example gives a demonstation:

Leave a Reply