-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
139 lines (111 loc) · 4.17 KB
/
variables.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
variable "region" {
description = "AWS region for VPC and Databricks workspace. Ex: us-east-2"
type = string
}
variable "iam_access_key" {
description = "IAM access key for deploying Terraform resources. Recommended that this user has Admin level permissions to create resources in the AWS account"
type = string
}
variable "iam_secret_key" {
description = "IAM secret key for deploying Terraform resources. Recommended that this user has Admin level permissions to create resources in the AWS account"
type = string
}
variable "shared_credential_location" {
description = "Location of AWS configuration file (.aws/credentials)"
type = list(any)
default = ["~/.aws/credentials"]
}
variable "shared_config_location" {
description = "Location of AWS configuration file (.aws/config)"
type = list(any)
default = ["~/.aws/config"]
}
variable "environment_prefix" {
description = "Environment prefix for resource names"
type = string
validation {
condition = length(var.environment_prefix) > 0
error_message = "Variable cannot be empty string"
}
}
variable "databricks_account_id" {
description = "Databricks root account id, found in the Accounts console."
type = string
}
variable "databricks_client_id" {
description = "Client id for service principal used to connect to Databricks account"
type = string
}
variable "databricks_client_secret" {
description = "Client secret for service principal used to connect to Databricks account"
type = string
}
variable "databricks_workspace_admin_email" {
description = "Add an admin account that will be the first user granted access to the workspace"
type = string
}
variable "vpc_cidr_block" {
description = "Full CIDR range for VPC. Ex: 10.1.0.0/16. Use if not using the vpc_first_two_octets variable"
type = string
default = ""
}
variable "vpc_first_two_octets" {
description = "First two octets for VPC range, use if using DataForge default deployment. Ex: 10.1"
type = string
default = "10.1"
}
variable "existing_vpc_id" {
description = "Existing VPC id to deploy Databricks workspace to. Ex: vpc-123456789. Needs to be defined if not using the vpc_first_two_octets variable"
type = string
default = ""
}
variable "databricks_az1_subnet" {
description = "AZ1 Subnet for Databricks. Ex: 10.1.128.0/18. Needs to be defined if not using the vpc_first_two_octets variable."
type = string
default = ""
}
variable "databricks_az2_subnet" {
description = "AZ2 Subnet for Databricks. Ex: 10.1.192.0/18. Needs to be defined if not using the vpc_first_two_octets variable."
type = string
default = ""
}
variable "public_subnet" {
description = "Public subnet id to host NAT gateway. Ex: subnet-123456789. Needs to be defined if not using the vpc_first_two_octets variable."
type = string
default = ""
}
variable "existing_databricks_az1_subnet_id" {
description = "Existing AZ1 subnet to deploy Databricks workspace to. Ex: subnet-123456789"
type = string
default = ""
}
variable "existing_databricks_az2_subnet_id" {
description = "Existing AZ2 subnet to deploy Databricks workspace to. Ex: subnet-123456789"
type = string
default = ""
}
variable "existing_public_subnet_id" {
description = "Existing public subnet to host NAT gateway. Ex: subnet-123456789"
type = string
default = ""
}
variable "existing_public_route_table_id" {
description = "Existing public route table to create egress Internet gateway connection. Ex: rtb-123456789"
type = string
default = ""
}
variable "existing_internal_route_table_id" {
description = "Existing internal route table to host NAT gateway route. Ex: rtb-123456789"
type = string
default = ""
}
variable "existing_internet_gateway_id" {
description = "Existing Internet Gateway attached to VPC. Ex: igw-123456789"
type = string
default = ""
}
variable "existing_nat_gateway_id" {
description = "Existing NAT gateway attached to VPC and internal route table. Ex: igw-123456789"
type = string
default = ""
}