Allows you to attach a Network Connectivity Config object to a databricks_mws_workspaces resource to create a Databricks Workspace that leverages serverless network connectivity configs.
The NCC and workspace must be in the same region.
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:
network_connectivity_config_id
- Canonical unique identifier of Network Connectivity Config in Databricks Account.workspace_id
- Identifier of the workspace to attach the NCC to. Change forces creation of a new resource.The following resources are used in the context: