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
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
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
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
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
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
Parameters
-
arnoptional computed - string -
creation_timeoptional computed - string -
data_retention_in_hoursoptional - number -
device_nameoptional - string -
idoptional computed - string -
kms_key_idoptional computed - string -
media_typeoptional - string -
namerequired - string -
tagsoptional - map from string to string -
versionoptional computed - string -
timeoutssingle block
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
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
RetentionPeriodHours: 24
EnrichedEventsStream:
Type: AWS::Kinesis::Stream
Type: AWS::Kinesis::Stream
Properties:
Name: int-test-stream-1
ShardCount: 1
KinesisStream2:
Type: AWS::Kinesis::Stream
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
CoursesStream:
Type: AWS::Kinesis::Stream
Type: AWS::Kinesis::Stream
Properties:
Name: int-test-stream-1
ShardCount: 1
KinesisStream2:
Type: AWS::Kinesis::Stream
Type: AWS::Kinesis::Stream
Properties:
Name: identities-${opt:stage}
ShardCount: 1
CoursesStream:
"Type": "AWS::Kinesis::Stream",
"Properties": {
"Name": "a0007-sp-prod-good",
"ShardCount": 5
}
},
"Type": "AWS::Kinesis::Stream",
"Properties": {
"Name": "a0007-sp-prod-good",
"ShardCount": 10
}
},
"Type": "AWS::Kinesis::Stream",
"Properties": {
"Name": "EventStream",
"RetentionPeriodHours": 24,
"ShardCount": 1,
"StreamEncryption": {
"Type": "AWS::Kinesis::Stream",
"Properties": {
"Name": "EventStream",
"RetentionPeriodHours": 24,
"ShardCount": 1,
"StreamEncryption": {
"Type" : "AWS::Kinesis::Stream",
"Properties" : {
"Name" : "DataStream",
"RetentionPeriodHours" : {
"Ref" : "RetentionPeriod"
},
Parameters
-
Nameoptional - String -
RetentionPeriodHoursoptional - Integer -
ShardCountrequired - Integer -
StreamEncryptionoptional - StreamEncryption -
Tagsoptional - List of Tag
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.