Kinesis data streams unused shard cost is the provisioned shard-hour you pay for capacity that is not taking records. In provisioned mode you choose the shard count. Each shard is an hourly charge whether producers write to it or not. A stream left at launch size, and a stream whose producers were removed, keep that charge. PUT payload units fall to zero when the writes stop. The shard hour does not.
Rutagon reads the shard-hour line before touching retention or consumer counts. AWS cloud infrastructure reviews treat this as capacity you allocated. MSK cost is a different service and a different bill. The Kinesis Data Streams pricing page is the source for the US-East figures below. The page also says Kinesis Data Streams is not in the free tier. An unused shard is not hiding inside a free allotment.
Where Kinesis data streams unused shard cost is billed
A provisioned shard provides 1 MB per second or 1,000 records per second of write, and up to 2 MB per second of read when consumers are not using enhanced fan-out. You pay for the shard at an hourly rate. The pricing page's US-East example prices one shard at $0.015 per hour, which is $0.36 per day. Four shards are $1.44 per day and $44.64 across a 31-day month. That example is a stream that is actually ingesting. The shard-hour arithmetic does not change if the four shards ingest nothing. Four idle shards are still $44.64 in that example's month. The PUT payload charge in the same example is $0.014 per million units, and an idle stream adds none of those units. The bill to delete is the shard hour.
mode: provisioned
bill: shard hour, $0.015 per shard hour in the US-East example
idle_month_4_shards: $0.36 x 4 x 31 = $44.64, with zero PUT units
extended_retention: extra $0.020 per shard hour in that example
enhanced_fan_out: extra $0.015 per consumer-shard hour while the consumer stays registered
on_demand_standard_stream_hour: $0.040 in the US-East example, $28.80 for 30 days Extended retention on a provisioned stream adds $0.020 per shard hour in that example, on top of the $0.015, for as long as the feature is on. It is priced per shard hour, not per byte stored, in the provisioned worked example. An unused shard with extended retention is $0.035 per hour in those two rates, $0.84 per day, before any long-term storage charges. Turning on a longer retention "in case the consumer lags" on a stream with no producer multiplies empty shard hours. Default retention in the example is 24 hours and is included. We drop extended retention on a stream whose IncomingBytes are already zero. There is nothing in the extra days to save.
Enhanced fan-out adds $0.015 per consumer-shard hour in the same example, for each consumer registered, plus $0.013 per GB retrieved. Registration is the hourly charge. A consumer left registered after the application was deleted still multiplies the shard count by $0.015 per hour, even when retrieved gigabytes are zero. Two consumers on four shards in the example are $89.28 in a 31-day month of consumer-shard hours, beside the $44.64 of shard hours. Unused shards make that multiplier larger. Deregister the consumer and the consumer-shard hour stops. The shard hour remains until the shard count drops or the stream is deleted.
On-demand is not automatically cheaper, and On-demand Advantage is the wrong fix for a quiet account. On-demand Standard in the US-East example charges a per-stream hour of $0.040, $28.80 across 30 days, plus data in and out. One idle provisioned shard at $0.015 per hour costs less than that stream hour. Ten idle shards at $0.15 per hour cost more than $0.040, so a mode change can win once the shard count is the expensive part and the stream still has to exist. We do the multiplication from the page. We do not move a one-shard idle stream onto a $0.040 stream hour to "get off provisioned."
On-demand Advantage drops the fixed stream hour and adds a minimum of 25 MB per second in and 25 MB per second out, measured across the account's on-demand streams. The pricing example shows a shortfall charge when traffic is under that floor. An unused stream is as far under the floor as traffic gets. Advantage is for accounts that already move serious volume. It is not a home for a shard you forgot.
The engineering fix
Stream-level IncomingBytes and IncomingRecords are enough when the whole stream is idle. A sum of zero across the retention window means every shard hour on that stream is unused. Delete the stream if nothing will produce to it. Deletion ends the shard hour, the extended-retention shard hour, and, once consumers are deregistered, the consumer-shard hour. Deleting the stream before deregistering is still fine if the stream is going away. We deregister first when the stream stays and only the consumer was the leftover.
A stream that is busy and over-sharded is a different cut. Peak IncomingBytes and IncomingRecords get compared with the shard count times 1 MB per second and 1,000 records per second. Shards above that peak are the unused capacity inside a live stream. We lower the shard count in the steps the API allows, and we watch WriteProvisionedThroughputExceeded before and after. Throttling means the cut went through the peak. The pricing example used four shards for 3.4 MB per second of ingest. That ratio is the pattern: shards follow the peak write, not the diagram from the original design review.
Enhanced fan-out consumers get listed. A consumer with no successful reads still costs $0.015 per shard hour in the US-East example while it is registered. The application that needed its own 2 MB per second per shard is the one that should be registered. A debug consumer from a load test is not. Standard consumers sharing the 2 MB per second read, inside the default retention, do not add that consumer-shard hour. Getting records is not charged for the default 24 hours or for extended retention up to seven days. The idle-shard waste is the shard you provisioned and the enhanced fan-out consumer you forgot, not the GetRecords call itself.
Mode changes happen after the shard count is honest. If the stream must stay and the remaining shard hours exceed the on-demand standard stream hour plus the data you actually write, on-demand standard is the smaller published line. If one shard covers the peak, provisioned at $0.015 stays smaller than $0.040. On-demand Advantage stays off the table until the account's aggregate ingest belongs near a 25 MB per second floor.
What we leave provisioned
We leave the shard count that matches the peak write, with headroom you can point at in IncomingBytes, and with extended retention only when a consumer really reads data older than a day. We leave enhanced fan-out only when a consumer needs its own read throughput and is still registered because it is still running. The $44.64 in the example is a fair bill for four shards that ingest 3.4 MB per second. It is a bad bill for four shards that ingest nothing.
Partial use is still a shard hour. A shard at one percent of 1 MB per second costs the same $0.015 as a full shard in that example. The fix is fewer shards, not a hope that AWS bills a fraction of a shard. Provisioned mode does not.
Rutagon runs this as a short bill review: shard hours, extended-retention shard hours, consumer-shard hours, then IncomingBytes per stream. The pricing page is the source for $0.015, $0.020, $0.015 again for fan-out, and $0.040 for the on-demand standard stream hour. The metric is the source for whether the shard carried records.
Frequently Asked Questions
Does an idle shard still cost $0.015 per hour?
In the US-East provisioned example, yes. The page prices the shard hour at $0.015 whether or not the example's producers are writing. PUT payload units, at $0.014 per million in that example, stay at zero when there are no records. Four idle shards are the same $44.64 shard-hour month as four busy ones, without the PUT charge.
What does extended retention add on an unused shard?
The provisioned example adds $0.020 per shard hour on top of the $0.015. An unused shard with extended retention is $0.035 per hour at those two rates. The charge follows the shard count, not the bytes arriving. We turn extended retention off when IncomingBytes is already zero.
Is on-demand cheaper for a quiet stream?
On-demand Standard in the US-East example is $0.040 per stream hour, $28.80 for 30 days, plus data. One provisioned shard at $0.015 is less than that. Many idle shards can cost more than $0.040, and then the mode change is worth the arithmetic. On-demand Advantage adds a 25 MB per second account minimum and is a poor fit for a stream with no traffic.
What should we delete first?
Deregister enhanced fan-out consumers that are not reading. They add $0.015 per shard hour each in the US-East example. Then delete streams whose incoming bytes and records are zero, or lower the shard count on a live stream to the peak write. Consumer-shard hours stop when the consumer is gone. Shard hours stop when the shard count drops or the stream is deleted.
Ask for an AWS bill review that lists provisioned shard hours against streams with no incoming records. Contact Rutagon at rutagon.com/contact, 907-841-8407, or contact@rutagon.com.