Reshard a Kinesis Data Stream and manage the KCL lease table during the transition

domain: aws-kinesis · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Determine current shard count and target: aws kinesis describe-stream-summary then call UpdateShardCount with TargetShardCount; Kinesis supports doubling or halving shard count in one call
  2. Wait for the stream to return to ACTIVE status; parent shards transition to CLOSED while child shards become ACTIVE
  3. KCL workers discover new shards via the lease table in DynamoDB; KCL creates new lease entries for child shards automatically and marks parent shard leases as completed once all records are processed
  4. Ensure KCL workers checkpoint the parent shard to SHARD_END before processing child shards; KCL enforces this ordering — child shard processing begins only after parent completion
  5. Monitor the KCL DynamoDB lease table: confirm child shard lease rows appear and are assigned to workers; stale parent leases with no checkpoint near SHARD_END indicate a processing backlog
  6. After resharding stabilize, review provisioned throughput costs: each shard has a base cost; reduce shard count again if utilization is low

Known gotchas

Related routes

Scale Amazon Kinesis Data Streams shards and reshard safely
docs.aws.amazon.com · 5 steps · unrated
Work within Kinesis Data Streams on-demand mode's automatic scaling limits without triggering write throttling
aws-kinesis · 6 steps · unrated
switch a kinesis data stream between on-demand and provisioned capacity modes safely
docs.aws.amazon.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans