diff --git a/modules/net-vpc/subnets.tf b/modules/net-vpc/subnets.tf index 8d82a2aad8..a75f5b7b94 100644 --- a/modules/net-vpc/subnets.tf +++ b/modules/net-vpc/subnets.tf @@ -159,24 +159,14 @@ resource "google_compute_subnetwork" "subnetwork" { ipv6_access_type = ( try(each.value.ipv6, null) != null ? each.value.ipv6.access_type : null ) - # private_ipv6_google_access = try(each.value.ipv6.enable_private_access, null) + private_ipv6_google_access = try(each.value.ipv6.enable_private_access, null) + send_secondary_ip_range_if_empty = true + dynamic "secondary_ip_range" { for_each = each.value.secondary_ip_ranges == null ? {} : each.value.secondary_ip_ranges content { range_name = secondary_ip_range.key ip_cidr_range = secondary_ip_range.value - # TODO(sruffilli): Provider 5.29.1 disabled reserved_internal_range because of a bug. - # Revert to the following once fixed. - # ip_cidr_range = ( - # startswith(secondary_ip_range.value, "networkconnectivity.googleapis.com") - # ? null - # : secondary_ip_range.value - # ) - # reserved_internal_range = ( - # startswith(secondary_ip_range.value, "networkconnectivity.googleapis.com") - # ? secondary_ip_range.value - # : null - # ) } } dynamic "log_config" {