File tree 2 files changed +31
-17
lines changed
examples/adb-vnet-injection
2 files changed +31
-17
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,15 @@ resource "azurerm_resource_group" "this" {
25
25
}
26
26
27
27
locals {
28
- // dltp - databricks labs terraform provider
29
28
prefix = join (" -" , [var . workspace_prefix , " ${ random_string . naming . result } " ])
30
29
location = var. rglocation
31
30
dbfsname = join (" " , [var . dbfs_prefix , " ${ random_string . naming . result } " ]) // dbfs name must not have special chars
32
31
33
32
// tags that are propagated down to all resources
34
- tags = {
33
+ tags = merge ( {
35
34
Environment = " Testing"
36
35
Epoch = random_string.naming.result
37
- }
36
+ }, var . tags )
38
37
}
39
38
40
39
Original file line number Diff line number Diff line change 1
1
variable "no_public_ip" {
2
- type = bool
3
- default = true
2
+ type = bool
3
+ default = true
4
+ description = " If Secure Cluster Connectivity (No Public IP) should be enabled. Default: true"
4
5
}
5
6
6
7
variable "rglocation" {
7
- type = string
8
- default = " southeastasia"
8
+ type = string
9
+ default = " southeastasia"
10
+ description = " Location of resource group to create"
9
11
}
10
12
11
13
variable "dbfs_prefix" {
12
- type = string
13
- default = " dbfs"
14
+ type = string
15
+ default = " dbfs"
16
+ description = " Name prefix for DBFS Root Storage account"
14
17
}
15
18
16
19
variable "node_type" {
17
- type = string
18
- default = " Standard_DS3_v2"
20
+ type = string
21
+ default = " Standard_DS3_v2"
22
+ description = " Node type for created cluster"
19
23
}
20
24
21
25
variable "workspace_prefix" {
22
- type = string
23
- default = " adb"
26
+ type = string
27
+ default = " adb"
28
+ description = " Name prefix for Azure Databricks workspace"
24
29
}
25
30
26
31
variable "global_auto_termination_minute" {
27
- type = number
28
- default = 30
32
+ type = number
33
+ default = 30
34
+ description = " Auto-termination time for created cluster"
29
35
}
30
36
31
37
variable "cidr" {
32
- type = string
33
- default = " 10.179.0.0/20"
38
+ type = string
39
+ default = " 10.179.0.0/20"
40
+ description = " Network range for created VNet"
34
41
}
42
+
43
+ variable "tags" {
44
+ type = map (string )
45
+ description = " Optional tags to add to resources"
46
+ default = {}
47
+ }
48
+
49
+
You can’t perform that action at this time.
0 commit comments