aws-kinesis
Verified for current stable LTS
Aws Kinesis Command: Get Shard Iterator
An engineer would use the 'aws kinesis get-shard-iterator' command with the TRIM_HORIZON parameter when they need to retrieve the starting point for reading records from the oldest available data in a specific shard of a Kinesis data stream for data processing or analysis. Exact CLI syntax to get shard iterator using Aws Kinesis.
When to use this: An engineer would use the 'aws kinesis get-shard-iterator' command with the TRIM_HORIZON parameter when they need to retrieve the starting point for reading records from the oldest available data in a specific shard of a Kinesis data stream for data processing or analysis.
Command Syntax
aws kinesis get-shard-iterator --shard-iterator-type TRIM_HORIZON --stream-name <name> --shard-id <id> aws kinesis get-shard-iterator --shard-iterator-type TRIM_HORIZON --stream-name <name> --shard-id <id> Command Breakdown
--shard-iterator-type- Command Option
- Tool-specific option used by this command invocation.
--stream-name- Command Option
- Tool-specific option used by this command invocation.
--shard-id- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to get shard iterator using Aws Kinesis.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Aws Kinesis Command: List Streams
aws kinesis list-streams Aws Kinesis Command: Put Record Inline Base64 aws kinesis put-record --stream-name <name> --partition-key <key> --data "$( echo "<my raw message>" | base64 )" Aws Kinesis Command: Get Records aws kinesis get-records --shard-iterator <iterator> Aws Kinesis Command: Put Record aws kinesis put-record --stream-name <name> --partition-key <key> --data <base64_encoded_message> Aws Kinesis Command: List Shards aws kinesis list-shards --stream-name <name>