1
1
variable "databricks_account_username" {}
2
2
variable "databricks_account_password" {}
3
- variable "databricks_account_id" {}
3
+
4
+ variable "databricks_account_id" {
5
+ type = string
6
+ description = " Databricks Account ID"
7
+ }
4
8
5
9
variable "tags" {
6
- default = {}
10
+ default = {}
11
+ type = map (string )
12
+ description = " Optional tags to add to created resources"
7
13
}
8
14
9
15
variable "spoke_cidr_block" {
10
- default = " 10.173.0.0/16"
16
+ default = " 10.173.0.0/16"
17
+ description = " IP range for spoke AWS VPC"
18
+ type = string
11
19
}
20
+
12
21
variable "hub_cidr_block" {
13
- default = " 10.10.0.0/16"
22
+ default = " 10.10.0.0/16"
23
+ description = " IP range for hub AWS VPC"
24
+ type = string
14
25
}
26
+
15
27
variable "region" {
16
- default = " eu-central-1"
28
+ default = " eu-central-1"
29
+ type = string
30
+ description = " AWS region to deploy to"
17
31
}
18
32
19
- resource "random_string" "naming" {
20
- special = false
21
- upper = false
22
- length = 6
23
- }
24
33
variable "whitelisted_urls" {
25
- default = [" .pypi.org" , " .pythonhosted.org" , " .cran.r-project.org" ]
34
+ default = [" .pypi.org" , " .pythonhosted.org" , " .cran.r-project.org" ]
35
+ description = " List of the domains to allow traffic to"
36
+ type = list (string )
26
37
}
27
38
28
39
variable "db_web_app" {
29
- default = " frankfurt.cloud.databricks.com"
40
+ default = " frankfurt.cloud.databricks.com"
41
+ description = " Hostname of Databricks web application"
42
+ type = string
30
43
}
31
44
32
45
variable "db_tunnel" {
33
- default = " tunnel.eu-central-1.cloud.databricks.com"
46
+ default = " tunnel.eu-central-1.cloud.databricks.com"
47
+ description = " Hostname of Databricks SCC Relay"
48
+ type = string
34
49
}
35
50
36
51
variable "db_rds" {
37
- default = " mdv2llxgl8lou0.ceptxxgorjrc.eu-central-1.rds.amazonaws.com"
52
+ default = " mdv2llxgl8lou0.ceptxxgorjrc.eu-central-1.rds.amazonaws.com"
53
+ description = " Hostname of AWS RDS instance for built-in Hive Metastore"
54
+ type = string
38
55
}
39
56
40
57
variable "db_control_plane" {
41
- default = " 18.159.44.32/28"
58
+ default = " 18.159.44.32/28"
59
+ description = " IP Range for AWS Databricks control plane"
60
+ type = string
42
61
}
43
62
44
63
variable "prefix" {
45
- default = " demo"
46
- }
64
+ default = " demo"
65
+ type = string
66
+ description = " Prefix for use in the generated names"
67
+ }
0 commit comments