Skip to content

Instantly share code, notes, and snippets.

View nexeh's full-sized avatar

Jeremy Corson nexeh

  • New Hampshire
View GitHub Profile
@nexeh
nexeh / dump_stream.rb
Created August 9, 2018 18:30 — forked from kenoir/dump_stream.rb
Dump the contents of a kinesis stream into the console
require 'aws-sdk'
def dump_stream
kinesis = Aws::Kinesis::Client.new(region: 'eu-west-1')
iterator = kinesis.get_shard_iterator({
stream_name: "testStream",
shard_id: "shardId-000000000000",
shard_iterator_type: "LATEST",
})