Skip to content

Commit

Permalink
Add private dns inputs and outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Dec 19, 2024
1 parent 5d667da commit 0bc757a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
16 changes: 16 additions & 0 deletions modules/datamanagement/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,22 @@ variable "private_dns_zone_id_vault" {
}
}

variable "databricks_private_dns_zone_ids" {
description = "Specifies the resource IDs of the private DNS zones for the Databricks vnet islands."
type = map(object({
id = string
name = string
}))
sensitive = false
nullable = false
validation {
condition = alltrue([
for key, value in var.databricks_private_dns_zone_ids : length(split("/", value.id)) == 9
])
error_message = "Please specify a valid resource id for the private dns zones."
}
}

# Customer-managed key variables
variable "customer_managed_key" {
description = "Specifies the customer managed key configurations."
Expand Down
5 changes: 4 additions & 1 deletion modules/platform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ output "private_dns_zone_ids" {
sensitive = false
value = {
for key, value in local.private_dns_zone_names :
key => azurerm_private_dns_zone.private_dns_zone[key].id
key => {
id = azurerm_private_dns_zone.private_dns_zone[key].id
name = azurerm_private_dns_zone.private_dns_zone[key].name
}
}
}

0 comments on commit 0bc757a

Please sign in to comment.