Skip to content

Commit de78aec

Browse files
authored
Make public network access configurable for PL module (#81)
1 parent e8a6403 commit de78aec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

modules/adb-with-private-link-standard/databricks_workspace.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "azurerm_databricks_workspace" "dp_workspace" {
55
location = azurerm_resource_group.dp_rg.location
66
sku = "premium"
77
tags = local.tags
8-
public_network_access_enabled = false
8+
public_network_access_enabled = var.public_network_access_enabled
99
network_security_group_rules_required = "NoAzureDatabricksRules"
1010
customer_managed_key_enabled = true
1111
custom_parameters {

modules/adb-with-private-link-standard/variables.tf

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ variable "cidr_dp" {
1111
variable "location" {
1212
type = string
1313
description = "(Required) The location for the resources in this module"
14-
}
14+
}
15+
16+
variable "public_network_access_enabled" {
17+
type = bool
18+
description = "(Optional, default: false) If access from the public networks should be enabled"
19+
default = false
20+
}

0 commit comments

Comments
 (0)