AWS Medialive Channel created as specified in the docs.
Actual Behavior
aws_medialive_channel.channel: Creating...
╷
│ Error: creating AWS Elemental MediaLive Channel (ml-test-01): operation error MediaLive: CreateChannel, https response error StatusCode: 400, RequestID: ************, BadRequestException: There is an Availability Zone conflict in one or both channel pipelines. Probably you have VPC inputs in this channel, and those inputs are in a different Availability Zone from the subnets that you specified for the channel endpoints. Verify the Availability Zones of your VPC inputs and VPC endpoints, and try again.
│
│ with aws_medialive_channel.channel,
│ on main.tf line 36, in resource "aws_medialive_channel" "channel":
│ 36: resource "aws_medialive_channel" "channel" {
│
╵
Relevant Error/Panic Output Snippet
aws_medialive_channel.channel: Creating...
╷
│ Error: creating AWS Elemental MediaLive Channel (ml-test-01): operation error MediaLive: CreateChannel, https response error StatusCode: 400, RequestID: **********, BadRequestException: There is an Availability Zone conflict in one or both channel pipelines. Probably you have VPC inputs in this channel, and those inputs are in a different Availability Zone from the subnets that you specified for the channel endpoints. Verify the Availability Zones of your VPC inputs and VPC endpoints, and try again.
│
│ with aws_medialive_channel.channel,
│ on main.tf line 36, in resource "aws_medialive_channel" "channel":
│ 36: resource "aws_medialive_channel" "channel" {
│
╵
Create a VPC with 2 private subnets, a role with the appropriate permissions for Medialive, and an S3 bucket.
Create a terraform.tfvars file with the required variable values.
Execute a terraform apply (the error does not appear during the planning stage)
Debug Output
I am not able to share this info.
Panic Output
No response
Important Factoids
The Medialive Input is created without issue but the Channel fails to create with this AZ inconsistency error even though the subnets are exactly the same and in the same order.
I have been able to create the channel via the console or the CLI and then import this channel into the terraform code without issues. Subsequent plans after the import will not detect any pending change.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.2
AWS Provider Version
5.74.0
Affected Resource(s)
aws_medialive_input aws_medialive_channel
Expected Behavior
AWS Medialive Channel created as specified in the docs.
Actual Behavior
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create a VPC with 2 private subnets, a role with the appropriate permissions for Medialive, and an S3 bucket. Create a terraform.tfvars file with the required variable values. Execute a terraform apply (the error does not appear during the planning stage)
Debug Output
I am not able to share this info.
Panic Output
No response
Important Factoids
The Medialive Input is created without issue but the Channel fails to create with this AZ inconsistency error even though the subnets are exactly the same and in the same order. I have been able to create the channel via the console or the CLI and then import this channel into the terraform code without issues. Subsequent plans after the import will not detect any pending change.
References
No response
Would you like to implement a fix?
None