File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -129,3 +129,9 @@ output "private_dns_zone_id" {
129
129
description = " ID of a single private DNS zone module instance (if you use one)."
130
130
value = try (module. private_dns_zone . id , module. private_dns_zone . zone_id , null )
131
131
}
132
+
133
+ output "postgres_private_dns_zone_id" {
134
+ description = " The ID of the Postgres private DNS zone."
135
+ value = var. private_dns_zone_enabled ? azurerm_private_dns_zone. postgres [0 ]. id : null
136
+ }
137
+
Original file line number Diff line number Diff line change @@ -295,8 +295,14 @@ variable "logical_product_service" {
295
295
}
296
296
}
297
297
298
- # variable "target_private_dns_zone_name" {
299
- # type = string
300
- # default = null
301
- # description = "If set, outputs the ID for just this zone name from private_dns_zone_ids_by_name."
302
- # }
298
+ variable "target_private_dns_zone_name" {
299
+ type = string
300
+ default = null
301
+ description = " If set, outputs the ID for just this zone name from private_dns_zone_ids_by_name."
302
+ }
303
+
304
+ variable "private_dns_zone_enabled" {
305
+ description = " Enable or disable the creation of the Postgres private DNS zone."
306
+ type = bool
307
+ default = false
308
+ }
You can’t perform that action at this time.
0 commit comments