-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Fix error when creating MediaLive Channel throws error about the destination not having a settings section #30660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccMediaLiveChannel_' PKG=medialive ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/medialive/... -v -count 1 -parallel 3 -run=TestAccMediaLiveChannel_ -timeout 180m
=== RUN TestAccMediaLiveChannel_basic
=== PAUSE TestAccMediaLiveChannel_basic
=== RUN TestAccMediaLiveChannel_M2TS_settings
=== PAUSE TestAccMediaLiveChannel_M2TS_settings
=== RUN TestAccMediaLiveChannel_UDP_outputSettings
=== PAUSE TestAccMediaLiveChannel_UDP_outputSettings
=== RUN TestAccMediaLiveChannel_MsSmooth_outputSettings
=== PAUSE TestAccMediaLiveChannel_MsSmooth_outputSettings
=== RUN TestAccMediaLiveChannel_AudioDescriptions_codecSettings
=== PAUSE TestAccMediaLiveChannel_AudioDescriptions_codecSettings
=== RUN TestAccMediaLiveChannel_VideoDescriptions_CodecSettings_h264Settings
=== PAUSE TestAccMediaLiveChannel_VideoDescriptions_CodecSettings_h264Settings
=== RUN TestAccMediaLiveChannel_hls
=== PAUSE TestAccMediaLiveChannel_hls
=== RUN TestAccMediaLiveChannel_status
=== PAUSE TestAccMediaLiveChannel_status
=== RUN TestAccMediaLiveChannel_update
=== PAUSE TestAccMediaLiveChannel_update
=== RUN TestAccMediaLiveChannel_updateTags
=== PAUSE TestAccMediaLiveChannel_updateTags
=== RUN TestAccMediaLiveChannel_disappears
=== PAUSE TestAccMediaLiveChannel_disappears
=== CONT TestAccMediaLiveChannel_basic
=== CONT TestAccMediaLiveChannel_hls
=== CONT TestAccMediaLiveChannel_updateTags
--- PASS: TestAccMediaLiveChannel_hls (80.67s)
=== CONT TestAccMediaLiveChannel_disappears
--- PASS: TestAccMediaLiveChannel_basic (88.44s)
=== CONT TestAccMediaLiveChannel_update
--- PASS: TestAccMediaLiveChannel_updateTags (122.24s)
=== CONT TestAccMediaLiveChannel_MsSmooth_outputSettings
--- PASS: TestAccMediaLiveChannel_disappears (69.29s)
=== CONT TestAccMediaLiveChannel_VideoDescriptions_CodecSettings_h264Settings
--- PASS: TestAccMediaLiveChannel_update (88.89s)
=== CONT TestAccMediaLiveChannel_status
--- PASS: TestAccMediaLiveChannel_MsSmooth_outputSettings (71.73s)
=== CONT TestAccMediaLiveChannel_AudioDescriptions_codecSettings
--- PASS: TestAccMediaLiveChannel_VideoDescriptions_CodecSettings_h264Settings (70.81s)
=== CONT TestAccMediaLiveChannel_UDP_outputSettings
--- PASS: TestAccMediaLiveChannel_AudioDescriptions_codecSettings (68.57s)
=== CONT TestAccMediaLiveChannel_M2TS_settings
--- PASS: TestAccMediaLiveChannel_UDP_outputSettings (71.82s)
--- PASS: TestAccMediaLiveChannel_M2TS_settings (73.80s)
--- PASS: TestAccMediaLiveChannel_status (190.63s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/medialive 373.567s
@julian3xl Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.64.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
When setting mediapackage as a destination channel on medialive, the provider throws the following error:
Error: creating AWS Elemental MediaLive Channel (test): operation error MediaLive: CreateChannel, https response error StatusCode: 400, RequestID: 97989b11-5882-423b-9968-082d5377e23a, BadRequestException: Exactly one of settings, MediaPackage settings, or Multiplex settings is required for destination xxx.
The problem is that the schema is not properly marshalled so that media_package_settings and multiplex_settings are not properly included on the REST API request and it fails.
Relations
Closes #30659
References
https://discuss.hashicorp.com/t/creating-medialive-channel-throws-error-about-the-destination-not-having-a-settings-section/50061/1