We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a812923 commit 78c5523Copy full SHA for 78c5523
outputs.tf
@@ -103,5 +103,5 @@ output "private_dns_zone_ids" {
103
104
output "postgres_private_dns_zone_id" {
105
description = "The ID of the Postgres private DNS zone."
106
- value = module.private_dns_zones["privatelink.postgres.database.azure.com"].id
+ value = contains(keys(module.private_dns_zones), "privatelink.postgres.database.azure.com") ? module.private_dns_zones["privatelink.postgres.database.azure.com"].id : null
107
}
0 commit comments