Resource: aws_kinesis_stream

Provides a Kinesis Stream resource. Amazon Kinesis is a managed service that scales elastically for real-time processing of streaming big data.

For more details, see the Amazon Kinesis Documentation.

Example Usage

resource "aws_kinesis_stream" "test_stream" {
  name             = "terraform-kinesis-test"
  shard_count      = 1
  retention_period = 48

  shard_level_metrics = [
    "IncomingBytes",
    "OutgoingBytes",
  ]

  stream_mode_details {
    stream_mode = "PROVISIONED"
  }

  tags = {
    Environment = "test"
  }
}

Argument Reference

This resource supports the following arguments:

stream_mode_details Configuration Block

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Kinesis Streams using the name. For example:

import {
  to = aws_kinesis_stream.test_stream
  id = "terraform-kinesis-test"
}

Using terraform import, import Kinesis Streams using the name. For example:

% terraform import aws_kinesis_stream.test_stream terraform-kinesis-test