Skip to content

Instantly share code, notes, and snippets.

@leocelis
Created April 30, 2016 07:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save leocelis/4fe9c88fde00043cd41a294c2c3a1fc7 to your computer and use it in GitHub Desktop.
Save leocelis/4fe9c88fde00043cd41a294c2c3a1fc7 to your computer and use it in GitHub Desktop.
aws kinesis create-stream --stream-name Foo --shard-count 1
aws kinesis describe-stream --stream-name Foo
aws kinesis list-streams
aws kinesis put-record --stream-name Foo --partition-key 123 --data testdata
SHARD_ITERATOR=$(aws kinesis get-shard-iterator --shard-id shardId-000000000000 --shard-iterator-type TRIM_HORIZON --stream-name Foo --query 'ShardIterator')
aws kinesis get-records --shard-iterator $SHARD_ITERATOR
Copy the value from Records > Data
Decode it here: https://www.base64decode.org
aws kinesis delete-stream --stream-name Foo
aws kinesis describe-stream --stream-name Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment