Skip to content

Commit 78c5523

Browse files
updated files
1 parent a812923 commit 78c5523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ output "private_dns_zone_ids" {
103103

104104
output "postgres_private_dns_zone_id" {
105105
description = "The ID of the Postgres private DNS zone."
106-
value = module.private_dns_zones["privatelink.postgres.database.azure.com"].id
106+
value = contains(keys(module.private_dns_zones), "privatelink.postgres.database.azure.com") ? module.private_dns_zones["privatelink.postgres.database.azure.com"].id : null
107107
}

0 commit comments

Comments
 (0)