Created
April 30, 2016 07:57
-
-
Save leocelis/4fe9c88fde00043cd41a294c2c3a1fc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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