hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[Bug]: Medialive color space settings cause an error if defined. #39516

Open eduardopuente opened 1 month ago

eduardopuente commented 1 month ago

Terraform Core Version

1.5.7

AWS Provider Version

5.68.0

Affected Resource(s)

aws_medialive_channel

Expected Behavior

Color space settings would be applied

Actual Behavior

It causes an error by terraform apply (no error with terraform plan)

Relevant Error/Panic Output Snippet

Error: updating AWS Elemental MediaLive Channel (XXXXXXX): operation error MediaLive: UpdateChannel, https response error StatusCode: 422, RequestID: b9b99790-cc2b-406a-ba4c-c728ed0da738, UnprocessableEntityException: OutputSettings must contain exactly one property: cmafIngestOutputSettings, hlsOutputSettings, rtmpOutputSettings, udpOutputSettings, msSmoothOutputSettings, archiveOutputSettings, frameCaptureOutputSettings, mediaPackageOutputSettings, multiplexOutputSettings, srtOutputSettings
│ 
│   with aws_medialive_channel.uhd_sdr,
│   on medialive.tf line 389, in resource "aws_medialive_channel" "uhd_sdr":
│  389: resource "aws_medialive_channel" "uhd_sdr" {

Terraform Configuration Files

color_space_settings {
            color_space_passthrough_settings {}
}

Steps to Reproduce

By defining the color space settings, it will fail no matter which color space.

Debug Output

No response

Panic Output

No response

Important Factoids

The aws_medialive_channel resource was imported

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue