-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathendpoint_dbfs.tf
41 lines (34 loc) · 1.62 KB
/
endpoint_dbfs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// For DFS
resource "azurerm_private_endpoint" "dp_dbfspe_dfs" {
name = "dbfspvtendpoint-dp-dfs"
location = azurerm_resource_group.dp_rg.location
resource_group_name = azurerm_resource_group.dp_rg.name
subnet_id = azurerm_subnet.dp_plsubnet.id
private_service_connection {
name = "ple-${local.prefix}-dp-dbfs-dfs"
private_connection_resource_id = join("", [azurerm_databricks_workspace.dp_workspace.managed_resource_group_id, "/providers/Microsoft.Storage/storageAccounts/${local.dbfsname}"])
is_manual_connection = false
subresource_names = ["dfs"]
}
private_dns_zone_group {
name = "private-dns-zone-dbfs-dfs"
private_dns_zone_ids = [azurerm_private_dns_zone.dnsdbfs_dfs.id]
}
}
// for Blob
resource "azurerm_private_endpoint" "dp_dbfspe_blob" {
name = "dbfspvtendpoint-dp-blob"
location = azurerm_resource_group.dp_rg.location
resource_group_name = azurerm_resource_group.dp_rg.name
subnet_id = azurerm_subnet.dp_plsubnet.id
private_service_connection {
name = "ple-${local.prefix}-dp-dbfs-blob"
private_connection_resource_id = join("", [azurerm_databricks_workspace.dp_workspace.managed_resource_group_id, "/providers/Microsoft.Storage/storageAccounts/${local.dbfsname}"])
is_manual_connection = false
subresource_names = ["blob"]
}
private_dns_zone_group {
name = "private-dns-zone-dbfs-blob"
private_dns_zone_ids = [azurerm_private_dns_zone.dnsdbfs_blob.id]
}
}