Skip to content

Commit

Permalink
feat: Empty string to null for public ip (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
re-sh-cloud-arch authored Nov 3, 2023
1 parent cb5cb93 commit 4c11865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion load_balancer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c11865

Please sign in to comment.