Forrest logo
back to the aws tool

aws-kinesis:tldr:87921

aws-kinesis: List the shards available on a stream.
$ aws kinesis list-shards --stream-name ${name}
try on your machine

The command "aws kinesis list-shards --stream-name ${name}" lists all the shards available in an Amazon Kinesis data stream specified by the variable "name".

Here's a breakdown of the command:

  • "aws kinesis": This is the AWS Command Line Interface (CLI) command used to interact with Amazon Kinesis service.

  • "list-shards": This sub-command is used to retrieve a list of all shards present in a Kinesis data stream.

  • "--stream-name ${name}": This specifies the name of the Kinesis data stream. The variable "${name}" is used to pass the actual name of the stream as an argument to the command. By substituting the variable with the stream name, the command knows which specific stream to fetch the shard list for.

Overall, the command allows you to obtain the shards (the partitions) present in a specific Kinesis data stream via the AWS CLI.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool