add support for custom description in net-address (#1499)

This commit is contained in:
simonebruzzechesse
2023-07-10 13:04:54 +02:00
committed by GitHub
parent 0b224a7f55
commit 973a8594b6
3 changed files with 18 additions and 15 deletions

View File

@@ -35,7 +35,7 @@ resource "google_compute_address" "internal" {
for_each = var.internal_addresses
project = var.project_id
name = each.key
description = "Terraform managed."
description = each.value.description
address_type = "INTERNAL"
region = each.value.region
subnetwork = each.value.subnetwork
@@ -49,7 +49,7 @@ resource "google_compute_global_address" "psc" {
for_each = var.psc_addresses
project = var.project_id
name = each.key
description = "Terraform managed."
description = each.value.description
address = try(each.value.address, null)
address_type = "INTERNAL"
network = each.value.network
@@ -61,7 +61,7 @@ resource "google_compute_global_address" "psa" {
for_each = var.psa_addresses
project = var.project_id
name = each.key
description = "Terraform managed."
description = each.value.description
address = each.value.address
address_type = "INTERNAL"
network = each.value.network