add support for custom description in net-address (#1499)
This commit is contained in:
committed by
GitHub
parent
0b224a7f55
commit
973a8594b6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user