Resource: aws_medialive_input

Terraform resource for managing an AWS MediaLive Input.

Example Usage

Basic Usage

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"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Destinations

Input Devices

Media Connect Flows

Sources

VPC

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 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