aws Verified current stable Not installed? Kubernetes

Aws / List All Streams

List All Streams

Lists all Kinesis streams in the AWS account.

$
Terminal
aws kinesis list-streams

When To Use

When preparing to collect data from all available streaming sources in an AWS environment.

Pro Tip

Use this command in conjunction with filters to narrow down visible streams, especially in large accounts.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
{
    "Streams": [
        {
            "StreamName": "orders-stream",
            "CreationTimestamp": "2023-10-01T12:00:00.000Z"
        },
        {
            "StreamName": "payments-stream",
            "CreationTimestamp": "2023-09-25T12:00:00.000Z"
        }
    ]
}

Anatomy of Output

Understanding the result

StreamName: {{name}}, Status: {{status}} Stream Information

Displays the stream names alongside their status (ACTIVE, CREATING, DELETING, etc.).

CreationTime: {{timestamp}} Creation Time

Indicates when the stream was initially created.

RetentionPeriodHours: {{hours}} Retention Period

Shows how long the stream retains data.

Troubleshooting

Common pitfalls

ResourceNotFoundException: Kinesis stream not found

Solution: Ensure that the specified stream exists in your account.

LimitExceededException: Too many streams requested

Solution: Reduce the number of simultaneous requests to Kinesis.

InvalidParameterException: Invalid parameter value

Solution: Check input parameters conform to required formats.

Command Breakdown

What each part is doing

aws
Base Command
The executable that performs this operation. Here it runs Aws before the shell applies any redirect operators.

How To Run

Execution path

  1. Step 1

    Run the command: `aws kinesis list-streams`

  2. Step 2

    Look for the 'Streams' key in the output to see all available streams.

Alternative Approaches

Comparable commands in other tools

Alternative kubernetes tools for the same job.