diff --git a/load_balancer/main.tf b/load_balancer/main.tf index 09b3fe2d..c74234a2 100644 --- a/load_balancer/main.tf +++ b/load_balancer/main.tf @@ -31,7 +31,7 @@ resource "azurerm_lb" "this" { frontend_ip_configuration { name = var.frontend_name - public_ip_address_id = var.type == "public" ? join("", azurerm_public_ip.this.*.id) : "" + public_ip_address_id = var.type == "public" ? join("", azurerm_public_ip.this.*.id) : null subnet_id = var.frontend_subnet_id private_ip_address = var.frontend_private_ip_address private_ip_address_allocation = var.frontend_private_ip_address_allocation