Allows you to create a [Network Connectivity Config] that can be used as part of a databricks_mws_workspaces resource to create a Databricks Workspace that leverages serverless network connectivity configs.
variable "region" {}
variable "prefix" {}
resource "databricks_mws_network_connectivity_config" "ncc" {
provider = databricks.account
name = "Network Connectivity Config for ${var.prefix}"
region = var.region
}
resource "databricks_mws_ncc_binding" "ncc_binding" {
provider = databricks.account
network_connectivity_config_id = databricks_mws_network_connectivity_config.ncc.network_connectivity_config_id
workspace_id = var.databricks_workspace_id
}
The following arguments are available:
name
- Name of Network Connectivity Config in Databricks Account. Change forces creation of a new resource.region
- Region of the Network Connectivity Config. NCCs can only be referenced by your workspaces in the same region. Change forces creation of a new resource.In addition to all arguments above, the following attributes are exported:
network_connectivity_config_id
- Canonical unique identifier of Network Connectivity Config in Databricks Accountdefault_rules.azure_service_endpoint_rule
- This provides a list of subnets. These subnets need to be allowed in your Azure resources in order for Databricks to access. See default_rules.azure_service_endpoint_rule.target_services
for the supported Azure services.This resource can be imported by Databricks account ID and Network Connectivity Config ID.
terraform import databricks_mws_network_connectivity_config.ncc <account_id>/<network_connectivity_config_id>
The following resources are used in the context: