-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10_Create_Unity_Elements.tf
63 lines (55 loc) · 2.26 KB
/
10_Create_Unity_Elements.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# resource "databricks_storage_credential" "this" {
# name = "adb-acc-con-${local.sufix}"
# comment = "Managed by TF. Do not modify."
# azure_managed_identity {
# access_connector_id = azurerm_databricks_access_connector.this.id
# }
# }
# resource "databricks_external_location" "this" {
# name = "external-${local.sufix}"
# url = "abfss://${local.sufix}@${local.storage_account_name}.dfs.core.windows.net/"
# credential_name = databricks_storage_credential.this.name
# comment = "Managed by TF. Please do not modify."
# depends_on = [
# azurerm_role_assignment.access_connector_to_storage
# ]
# }
# resource "databricks_catalog" "this" {
# name = "catalog-${local.sufix}"
# storage_root = databricks_external_location.this.url
# comment = "This catalog is managed by Terraform. Please do not modify."
# isolation_mode = "ISOLATED"
# depends_on = [
# databricks_external_location.this
# ]
# }
# resource "databricks_schema" "this" {
# name = "schema-${local.sufix}"
# catalog_name = databricks_catalog.this.name
# comment = "This database is managed by terraform. Please do not modify."
# depends_on = [
# databricks_external_location.this,
# databricks_catalog.this
# ]
# }
# resource "databricks_notebook" "demo_10" {
# source = "${path.module}/notebooks/10_Create_Unity_Elements.py"
# path = "${data.databricks_current_user.me.home}/10_Create_Unity_Elements.py"
# }
# resource "databricks_external_location" "volume" {
# name = "external-${local.sufix}-volume"
# url = "abfss://${local.sufix}-volume@${local.storage_account_name}.dfs.core.windows.net/"
# credential_name = databricks_storage_credential.this.name
# comment = "Managed by TF. Please do not modify."
# depends_on = [
# azurerm_role_assignment.access_connector_to_storage
# ]
# }
# resource "databricks_volume" "this" {
# name = "volume-${local.sufix}"
# catalog_name = databricks_catalog.this.name
# schema_name = databricks_schema.this.name
# volume_type = "EXTERNAL"
# storage_location = databricks_external_location.volume.url
# comment = "This volume is managed by Terraform. Please do not modify."
# }