diff --git a/modules/instance_template/variables.tf b/modules/instance_template/variables.tf index 7aec8575..b46426af 100644 --- a/modules/instance_template/variables.tf +++ b/modules/instance_template/variables.tf @@ -230,12 +230,6 @@ variable "additional_networks" { subnetwork_range_name = string })) })) - validation { - condition = alltrue([ - for ni in var.additional_networks : (ni.network == null) != (ni.subnetwork == null) - ]) - error_message = "All additional network interfaces must define exactly one of \"network\" or \"subnetwork\"." - } validation { condition = alltrue([ for ni in var.additional_networks : ni.nic_type == "GVNIC" || ni.nic_type == "VIRTIO_NET" || ni.nic_type == null