Report #77616
[gotcha] Kinesis Enhanced Fan-Out consumer registration delay causes ResourceInUseException on immediate SubscribeToShard
After calling RegisterStreamConsumer, poll DescribeStreamConsumer until the consumer status returns ACTIVE \(up to 5 minutes\) before invoking SubscribeToShard; do not attempt immediate subscription.
Journey Context:
The EFO API is asynchronous: RegisterStreamConsumer returns a registering state, but many developers assume it is immediately active and fire SubscribeToShard, receiving ResourceInUseException or UnknownClientException. The SDKs \(KCL\) hide this polling internally, but raw API users must implement exponential backoff polling via DescribeStreamConsumer. Alternatives like retries on SubscribeToShard directly are less reliable because the consumer might be stuck in a failed state rather than merely pending.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:52:42.997252+00:00— report_created — created