Provides a resource to manage a Kinesis Stream Consumer.
For more details, see the Amazon Kinesis Stream Consumer Documentation.
resource "aws_kinesis_stream" "example" {
name = "example-stream"
shard_count = 1
}
resource "aws_kinesis_stream_consumer" "example" {
name = "example-consumer"
stream_arn = aws_kinesis_stream.example.arn
}
This resource supports the following arguments:
name
- (Required, Forces new resource) Name of the stream consumer.stream_arn
– (Required, Forces new resource) Amazon Resource Name (ARN) of the data stream the consumer is registered with.This resource exports the following attributes in addition to the arguments above:
arn
- Amazon Resource Name (ARN) of the stream consumer.creation_timestamp
- Approximate timestamp in RFC3339 format of when the stream consumer was created.id
- Amazon Resource Name (ARN) of the stream consumer.In Terraform v1.5.0 and later, use an import
block to import Kinesis Stream Consumers using the Amazon Resource Name (ARN). For example:
import {
to = aws_kinesis_stream_consumer.example
id = "arn:aws:kinesis:us-west-2:123456789012:stream/example/consumer/example:1616044553"
}
Using terraform import
, import Kinesis Stream Consumers using the Amazon Resource Name (ARN). For example:
% terraform import aws_kinesis_stream_consumer.example arn:aws:kinesis:us-west-2:123456789012:stream/example/consumer/example:1616044553