AWS Kinesis Video Stream

This page shows how to write Terraform and CloudFormation for Kinesis Video Stream and write them securely.

aws_kinesis_video_stream (Terraform)

The Video Stream in Kinesis can be configured in Terraform with the resource name aws_kinesis_video_stream. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

aws_kinesis_video_stream.tf#L1
resource "aws_kinesis_video_stream" "default" {
  name = "terraform-kinesis-video-stream-test"

  data_retention_in_hours = 1
  device_name             = "kinesis-video-device-name"
  kms_key_id              = aws_kms_key.default.id
aws_kinesis_video_stream.tf#L1
resource "aws_kinesis_video_stream" "pass" {
  name = "terraform-kinesis-video-stream-test"

  data_retention_in_hours = 1
  device_name             = "kinesis-video-device-name"
  kms_key_id              = aws_kms_key.default.id
aws_kinesis_video_stream.tf#L1
resource "aws_kinesis_video_stream" "pass" {
  name = "terraform-kinesis-video-stream-test"

  data_retention_in_hours = 1
  device_name             = "kinesis-video-device-name"
  kms_key_id              = aws_kms_key.default.id
aws_kinesis_video_stream.tf#L1
resource "aws_kinesis_video_stream" "pass" {
  name = "terraform-kinesis-video-stream-test"

  data_retention_in_hours = 1
  device_name             = "kinesis-video-device-name"
  kms_key_id              = aws_kms_key.default.id
aws_kinesis_video_stream.tf#L1
resource "aws_kinesis_video_stream" "pass" {
  name = "terraform-kinesis-video-stream-test"

  data_retention_in_hours = 1
  device_name             = "kinesis-video-device-name"
  kms_key_id              = aws_kms_key.default.id

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a Kinesis Video Stream resource. Amazon Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for analytics, machine learning (ML), playback, and other processing. For more details, see the [Amazon Kinesis Documentation][1].

AWS::Kinesis::Stream (CloudFormation)

The Stream in Kinesis can be configured in CloudFormation with the resource name AWS::Kinesis::Stream. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

serverless.yml#L98
      Type: AWS::Kinesis::Stream
      Properties:
        ShardCount: 1
        RetentionPeriodHours: 24
    EnrichedEventsStream:
      Type: AWS::Kinesis::Stream
cftemplate.yml#L5
    Type: AWS::Kinesis::Stream
    Properties:
      Name: int-test-stream-1
      ShardCount: 1
  KinesisStream2:
    Type: AWS::Kinesis::Stream
streams.yml#L5
    Type: AWS::Kinesis::Stream
    Properties:
      ShardCount: 1

  CoursesStream:
    Type: AWS::Kinesis::Stream
cftemplate.yml#L5
    Type: AWS::Kinesis::Stream
    Properties:
      Name: int-test-stream-1
      ShardCount: 1
  KinesisStream2:
    Type: AWS::Kinesis::Stream
streams.yml#L2
  Type: AWS::Kinesis::Stream
  Properties:
    Name: identities-${opt:stage}
    ShardCount: 1

CoursesStream:
snowplow-kinesis-staging-cftemplate.json#L6
            "Type": "AWS::Kinesis::Stream",
            "Properties": {
                "Name": "a0007-sp-prod-good",
                "ShardCount": 5
            }
        },
snowplow-kinesis-prod-cftemplate.json#L6
            "Type": "AWS::Kinesis::Stream",
            "Properties": {
                "Name": "a0007-sp-prod-good",
                "ShardCount": 10
            }
        },
positive2.json#L4
      "Type": "AWS::Kinesis::Stream",
      "Properties": {
        "Name": "EventStream",
        "RetentionPeriodHours": 24,
        "ShardCount": 1,
        "StreamEncryption": {
positive2.json#L4
      "Type": "AWS::Kinesis::Stream",
      "Properties": {
        "Name": "EventStream",
        "RetentionPeriodHours": 24,
        "ShardCount": 1,
        "StreamEncryption": {
data_stream.json#L18
            "Type" : "AWS::Kinesis::Stream",
            "Properties" : {
                "Name" : "DataStream",
                "RetentionPeriodHours" : {
                    "Ref" : "RetentionPeriod"
                },

Parameters

Explanation in CloudFormation Registry

Creates a Kinesis stream that captures and transports data records that are emitted from data sources. For information about creating streams, see CreateStream in the Amazon Kinesis API Reference.

Frequently asked questions

What is AWS Kinesis Video Stream?

AWS Kinesis Video Stream is a resource for Kinesis of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Kinesis Video Stream?

For Terraform, the JamesWoolfenden/check-encrypt, bridgecrewio/checkov and bridgecrewio/checkov source code examples are useful. See the Terraform Example section for further details.

For CloudFormation, the acgray/shovel, markglh/initialised-localstack and OffCourse/infrastructure source code examples are useful. See the CloudFormation Example section for further details.