Terraform resource for managing an AWS MediaLive InputSecurityGroup.
resource "aws_medialive_input_security_group" "example" {
whitelist_rules {
cidr = "10.0.0.8/32"
}
tags = {
ENVIRONMENT = "prod"
}
}
The following arguments are required:
whitelist_rules
- (Required) Whitelist rules. See Whitelist Rules for more details.The following arguments are optional:
tags
- (Optional) A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.cidr
(Required) - The IPv4 CIDR that's whitelisted.This resource exports the following attributes in addition to the arguments above:
id
- InputSecurityGroup Id.arn
- ARN of the InputSecurityGroup.inputs
- The list of inputs currently using this InputSecurityGroup.create
- (Default 5m
)update
- (Default 5m
)delete
- (Default 5m
)In Terraform v1.5.0 and later, use an import
block to import MediaLive InputSecurityGroup using the id
. For example:
import {
to = aws_medialive_input_security_group.example
id = "123456"
}
Using terraform import
, import MediaLive InputSecurityGroup using the id
. For example:
% terraform import aws_medialive_input_security_group.example 123456