Closed lordfarhan40 closed 5 years ago
nice catch, so it looks like ListShards
supports pagination
{
"ExclusiveStartShardId": "string",
"MaxResults": number,
"NextToken": "string",
"StreamCreationTimestamp": number,
"StreamName": "string"
}
Which means that we could loop over the pages of shards
Yes, we can iterate over the response and keep adding the shards. I will start working on the fix.
getShardIDs use "DescribeStream" just once which in turn only return 100 shards at max. We need to call DescribeStream a few times to get all the shards, something like this Retrieving Shards Reference: https://github.com/aws/aws-sdk-go/blob/master/service/kinesis/api.go#L3891