azurerm_kubernetes_cluster
- web_app_routing.dns_zone_ids
has incorrect minimum item requirement
#26717
Closed
1 task done
Labels
Is there an existing issue for this?
Community Note
Terraform Version
1.8.3
AzureRM Provider Version
3.113.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Plan should have seen there was no changes and completed without error.
Actual Behaviour
Since updating our terraform to use a list for
dns_zone_ids
in theweb_app_routing
block instead of the singular stringdns_zone_id
we have noticed the above error when passing an empty list ( [] ) to thedns_zone_ids
property.The docs suggest we should be passing an empty list, "If not using Bring-Your-Own DNS zones this property should be set to an empty list."
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#dns_zone_ids
I'd guess it's this line causing the error, as it sets a
MinItems
of 1:https://github.com/hashicorp/terraform-provider-azurerm/pull/26117/files#diff-6a7f7d2789c7df9bc827ae00ddcf7d3fbf97b87d414313e0bf99fa55562b0090R440
Steps to Reproduce
Try to create an AKS cluster using the web app routing addon with dns_zone_ids set to an empty list.
Important Factoids
No response
References
#26117
The text was updated successfully, but these errors were encountered: