Hiya, i’m having a small issue that seems to be something that could be a mismatch between Terraform and AWS, when setting up a aws_medialive_channel
i’m receiving a statuscode of 400 from AWS when applying, the exception states Exactly one of settings, MediaPackage settings, or Multiplex settings is required for destination destination.
although under destinations i have a section called media_package_settings
with the channel_id
set to the media_package channel id.
resource "aws_medialive_channel" "channel" {
depends_on = [
aws_media_package_channel.testing_mp_channel
]
name = "medialive-channel"
channel_class = "STANDARD"
role_arn = aws_iam_role.vid-stream-iam-role.arn
input_specification {
codec = "AVC"
maximum_bitrate = "MAX_10_MBPS"
input_resolution = "HD"
}
input_attachments {
input_attachment_name = "example-input"
input_id = aws_medialive_input.input.id
}
destinations {
id = "destination"
media_package_settings {
channel_id = aws_media_package_channel.testing_mp_channel.id
}
}
encoder_settings {
timecode_config {
source = "EMBEDDED"
}
audio_descriptions {
audio_selector_name = "example audio selector"
name = "audio-selector"
}
video_descriptions {
name = "example-video"
}
output_groups {
output_group_settings {
media_package_group_settings {
destination {
destination_ref_id = "destination"
}
}
}
outputs {
output_name = "example-name"
output_settings {
media_package_output_settings {}
}
}
}
}
tags = {
Terraform = "True"
}
}
Is there anyone that can point out what is causing this error in the “aws_medialive_channel” ?