Add send_secondary_ip_range_if_empty=true to google_compute_subnetwork (#2537)

This commit is contained in:
Simone Ruffilli
2024-08-28 16:00:08 +02:00
committed by GitHub
parent 815abc0afa
commit 09de7d67ff

View File

@@ -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" {