Skip to content

Commit

Permalink
Output dns zone ID only when control plane is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro authored Aug 1, 2023
1 parent c5515a2 commit b7f9c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ output "subnet_id" {
}

output "db_private_dns_zone_id" {
value = azurerm_private_dns_zone.postgres_dns[0].id
value = var.control_plane_enabled ? azurerm_private_dns_zone.postgres_dns[0].id : ""
}

0 comments on commit b7f9c47

Please sign in to comment.