Skip to content

Instantly share code, notes, and snippets.

@fblundun
Last active January 14, 2016 09:53
Show Gist options
  • Save fblundun/9d245f46ee4685616072 to your computer and use it in GitHub Desktop.
Save fblundun/9d245f46ee4685616072 to your computer and use it in GitHub Desktop.
Easy way to view open shards of a Kinesis stream
#!/bin/sh
aws kinesis describe-stream --stream-name $1 |
jq '.StreamDescription.Shards | map(select(.SequenceNumberRange.EndingSequenceNumber == null))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment