Amazon Kinesis Data Streams inventory

Include data streams, producers, and consumers in the inventory.

Description

This inventory entry identifies a Kinesis data stream declared with AWS::Kinesis::Stream.

Potential impact

If consumers fall behind, records may expire before they can replay them.

Remediation

Record the owner, producers and consumers. Check their access, the encryption key, and whether retention and capacity cover recovery needs.

Examples

The example extends retention from 24 to 168 hours and selects alias/aws/kinesis. Check retention costs. For provisioned capacity, supply ShardCount. For on-demand capacity, set StreamModeDetails to use ON_DEMAND.

Before

yaml
Resources:
  MyStream:
    Type: AWS::Kinesis::Stream
    Properties:
      Name: MyKinesisStream1
      RetentionPeriodHours: 24

After

yaml
Resources:
  MyStream:
    Type: AWS::Kinesis::Stream
    Properties:
      Name: MyKinesisStream1
      RetentionPeriodHours: 168
      StreamEncryption:
        EncryptionType: KMS
        KeyId: alias/aws/kinesis

References