AWS Kinesis Data Streams inventory

Document data streams and the systems that use them.

Description

The inventory lists Kinesis data streams declared in Terraform.

Potential impact

An overlooked stream can leave a gap in access reviews or the time available to replay records.

Remediation

Record the team responsible, which systems write and read records, and their required retention period. Compare that with the stream’s retention, encryption and access policy.

Examples

The example tags the production aws_kinesis_stream.events stream. Review delivery and encryption in the stream settings.

Before

hcl
resource "aws_kinesis_stream" "events" {
  name        = "events"
  shard_count = 1
}

After

hcl
resource "aws_kinesis_stream" "events" {
  name        = "events"
  shard_count = 1

  tags = {
    Service     = "events"
    Environment = "production"
  }
}

References