Skip to content

Commit

Permalink
Merge pull request #2 from truefoundry/db-zone-output
Browse files Browse the repository at this point in the history
Output dns zone ID only when control plane is enabled
  • Loading branch information
dunefro authored Aug 1, 2023
2 parents c5515a2 + b7f9c47 commit 7caafe3
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 7caafe3

Please sign in to comment.