AWS Kinesis Data Streams — a Tiny CLI Demo

Kinesis Data Streams is a part of the AWS Kinesis streaming data platform, along with Kinesis Data Firehose, Kinesis Video Streams, and Kinesis Data Analytics. For more information please checkout https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html

This demo assumes that AWS CLI is installed and configured.

Step-1 Create a Single Shard Stream

Image for post
Image for post

Step-2 Add a Record to the Stream

Step-3 Read a Record from the Stream

Get the shard iterator for our (single) shard, this represents the position of the stream in a shard to read.

Shard iterators have a lifetime of 300 seconds.

Let us decode the data.

We can also simplify the passing of the shard iterator in bash.

Step-4 Time to Clean Up

Thank you for your time! For more such tiny snippets please follow me. These snippets are from my collection of articles and links I have picked up for my trainings.

Written by

AWS Certified DevOps Engineer & Solutions Architect Professional — Docker | Kubernetes | DevOps — Trainer | Running | Swimming | Cycling

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store