Terraform resource for managing an AWS MediaLive Input.
resource "aws_medialive_input_security_group" "example" {
whitelist_rules {
cidr = "10.0.0.8/32"
}
tags = {
ENVIRONMENT = "prod"
}
}
resource "aws_medialive_input" "example" {
name = "example-input"
input_security_groups = [aws_medialive_input_security_group.example.id]
type = "UDP_PUSH"
tags = {
ENVIRONMENT = "prod"
}
}
The following arguments are required:
name
- (Required) Name of the input.input_security_groups
- (Required) List of input security groups.type
- (Required) The different types of inputs that AWS Elemental MediaLive supports.The following arguments are optional:
destinations
- (Optional) Destination settings for PUSH type inputs. See Destinations for more details.input_devices
- (Optional) Settings for the devices. See Input Devices for more details.media_connect_flows
- (Optional) A list of the MediaConnect Flows. See Media Connect Flows for more details.role_arn
- (Optional) The ARN of the role this input assumes during and after creation.sources
- (Optional) The source URLs for a PULL-type input. See Sources for more details.tags
- (Optional) A map of tags to assign to the Input. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.vpc
- (Optional) Settings for a private VPC Input. See VPC for more details.stream_name
- A unique name for the location the RTMP stream is being pushed to.id
- The unique ID for the device.flow_arn
- The ARN of the MediaConnect Flowpassword_param
- The key used to extract the password from EC2 Parameter store.url
- The URL where the stream is pulled from.username
- The username for the input source.subnet_ids
- A list of 2 VPC subnet IDs from the same VPC.security_group_ids
- A list of up to 5 EC2 VPC security group IDs to attach to the Input.This resource exports the following attributes in addition to the arguments above:
arn
- ARN of the Input.attached_channels
- Channels attached to Input.input_class
- The input class.input_partner_ids
- A list of IDs for all Inputs which are partners of this one.input_source_type
- Source type of the input.create
- (Default 30m
)update
- (Default 30m
)delete
- (Default 30m
)In Terraform v1.5.0 and later, use an import
block to import MediaLive Input using the id
. For example:
import {
to = aws_medialive_input.example
id = "12345678"
}
Using terraform import
, import MediaLive Input using the id
. For example:
% terraform import aws_medialive_input.example 12345678