From d248079df5ad7663278466697f0ad0f0a8e81d97 Mon Sep 17 00:00:00 2001 From: Orazio Battaglia Date: Tue, 25 Jul 2023 12:47:17 +0200 Subject: [PATCH] main.tf: public_ip_address_id change from "" to null --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 939884f..a298774 100644 --- a/main.tf +++ b/main.tf @@ -56,7 +56,7 @@ resource "azurerm_network_interface" "nic" { subnet_id = var.subnet_id private_ip_address_allocation = var.private_ip_address_allocation private_ip_address = length(var.private_ip_addresses) > 0 ? var.private_ip_addresses[count.index] : "" - public_ip_address_id = length(var.public_ip_addresses) > 0 ? var.public_ip_addresses[count.index] : "" + public_ip_address_id = length(var.public_ip_addresses) > 0 ? var.public_ip_addresses[count.index] : null } tags = var.tags