-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
352 lines (300 loc) · 9.78 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
##########################################
# Common #
##########################################
variable "namespace" {
type = string
description = "String used for prefix resources."
}
variable "location" {
type = string
}
variable "tags" {
default = {}
type = map(string)
description = "Map of tags for resource"
}
variable "deletion_protection" {
description = "If the instance should have deletion protection enabled. The database / Bucket can't be deleted when this value is set to `true`."
type = bool
default = true
}
variable "use_internal_queue" {
type = bool
description = "Uses an internal redis queue instead of using azure queue."
default = false
}
variable "size" {
default = "small"
description = "Deployment size"
nullable = true
type = string
}
variable "wandb_version" {
description = "The version of Weights & Biases local to deploy."
type = string
default = "latest"
}
variable "wandb_image" {
description = "Docker repository of to pull the wandb image from."
type = string
default = "wandb/local"
}
variable "license" {
type = string
description = "Your wandb/local license"
}
variable "oidc_issuer" {
type = string
description = "A url to your Open ID Connect identity provider, i.e. https://cognito-idp.us-east-1.amazonaws.com/us-east-1_uiIFNdacd"
default = ""
}
variable "oidc_client_id" {
type = string
description = "The Client ID of application in your identity provider"
default = ""
}
variable "oidc_secret" {
type = string
description = "The Client secret of application in your identity provider"
default = ""
sensitive = true
}
variable "oidc_auth_method" {
type = string
description = "OIDC auth method"
default = "implicit"
validation {
condition = contains(["pkce", "implicit"], var.oidc_auth_method)
error_message = "Invalid OIDC auth method."
}
}
variable "other_wandb_env" {
type = map(any)
description = "Extra environment variables for W&B"
default = {}
}
##########################################
# Operator #
##########################################
variable "operator_chart_version" {
type = string
description = "Version of the operator chart to deploy"
default = "1.3.4"
}
variable "controller_image_tag" {
type = string
description = "Tag of the controller image to deploy"
default = "1.14.0"
}
variable "enable_helm_release" {
type = bool
default = true
description = "Enable or disable applying and releasing Helm chart"
}
##########################################
# DNS #
##########################################
variable "domain_name" {
type = string
default = null
description = "Domain for accessing the Weights & Biases UI."
}
variable "subdomain" {
type = string
default = null
description = "Subdomain for accessing the Weights & Biases UI. Default creates record at Route53 Route."
}
variable "ssl" {
type = bool
default = true
description = "Enable SSL certificate"
}
##########################################
# Database #
##########################################
variable "database_version" {
description = "Version for MySQL"
type = string
default = "5.7"
}
variable "database_availability_mode" {
description = ""
type = string
default = "SameZone"
validation {
condition = contains(["ZoneRedundant", "SameZone"], var.database_availability_mode)
error_message = "Possible values: \"ZoneRedundant\"; \"SameZone\"."
}
}
variable "database_sku_name" {
type = string
default = null
description = "Specifies the SKU Name for this MySQL Server. Defaults to null and value from deployment-size.tf is used"
}
##########################################
# Redis #
##########################################
variable "create_redis" {
type = bool
description = "Boolean indicating whether to provision an redis instance (true) or not (false)."
default = false
}
variable "redis_capacity" {
type = number
description = "Number indicating size of an redis instance. Defaults to null and value from deployment-size.tf is used"
default = null
}
##########################################
# External Bucket #
##########################################
# Most users will not need these settings. They are ment for users who want a
# bucket in a different account.
variable "blob_container" {
type = string
description = "Use an existing bucket."
default = ""
}
variable "storage_account" {
type = string
description = "Azure storage account name"
default = ""
}
variable "storage_key" {
type = string
description = "Azure primary storage access key"
default = ""
}
variable "external_bucket" {
description = "config an external bucket"
type = any
default = null
}
##########################################
# Bucket path #
##########################################
# This setting is meant for users who want to store all of their instance-level
# bucket's data at a specific path within their bucket. It can be set both for
# external buckets or the bucket created by this module.
variable "bucket_path" {
description = "path of where to store data for the instance-level bucket"
type = string
default = ""
}
##########################################
# K8s #
##########################################
variable "kubernetes_instance_type" {
description = "Instance type for primary node group. Defaults to null and value from deployment-size.tf is used"
type = string
default = null
}
variable "kubernetes_min_node_per_az" {
description = "Minimum number of nodes for the AKS cluster. Defaults to null and value from deployment-size.tf is used"
type = number
default = null
}
variable "kubernetes_max_node_per_az" {
description = "Maximum number of nodes for the AKS cluster. Defaults to null and value from deployment-size.tf is used"
type = number
default = null
}
variable "cluster_sku_tier" {
type = string
description = "The Azure AKS SKU Tier to use for this cluster (https://learn.microsoft.com/en-us/azure/aks/free-standard-pricing-tiers)"
default = "Free"
}
variable "node_pool_zones" {
type = list(string)
description = "Availability zones for the node pool"
default = null
}
variable "node_pool_num_zones" {
type = number
description = "Number of availability zones to use for the node pool when node_pool_zones is not set. If neither are set, 3 zones will be used"
default = 2
}
variable "node_max_pods" {
type = number
description = "Maximum number of pods per node"
default = 30
}
###########################################
# Application gateway private link #
###########################################
variable "create_private_link" {
type = bool
default = false
description = "Use for the azure private link."
}
variable "allowed_subscriptions" {
type = string
description = "List of allowed customer subscriptions coma seperated values"
default = ""
}
##########################################
# Network #
##########################################
variable "allowed_ip_ranges" {
description = "Allowed public IP addresses or CIDR ranges."
type = list(string)
default = []
}
variable "weave_wandb_env" {
type = map(string)
description = "Extra environment variables for W&B"
default = {}
}
variable "app_wandb_env" {
type = map(string)
description = "Extra environment variables for W&B"
default = {}
}
variable "parquet_wandb_env" {
type = map(string)
description = "Extra environment variables for W&B"
default = {}
}
##########################################
# vault key #
##########################################
variable "enable_storage_vault_key" {
type = bool
default = false
description = "Flag to enable managed key encryption for the storage account."
}
variable "disable_storage_vault_key_id" {
type = bool
default = false
description = "Flag to disable the `customer_managed_key` block, the properties 'encryption.identity, encryption.keyvaultproperties' cannot be updated in a single operation."
}
variable "enable_database_vault_key" {
type = bool
default = false
description = "Flag to enable managed key encryption for the database. Once enabled, cannot be disabled."
}
## To support otel azure monitor sql and redis metrics need operator-wandb chart minimum version 0.14.0
variable "azuremonitor" {
type = bool
default = false
}
###########################################
# ClickHouse endpoint #
###########################################
variable "clickhouse_private_endpoint_service_name" {
type = string
description = "ClickHouse private endpoint 'Service name' (ends in .azure.privatelinkservice)."
default = ""
}
variable "clickhouse_region" {
type = string
description = "ClickHouse region (eastus2, westus3, etc)."
default = ""
}
###########################################
# Internal Service #
###########################################
variable "kubernetes_cluster_oidc_issuer_url" {
type = string
description = "OIDC issuer URL for the Kubernetes cluster. Can be determined using `kubectl get --raw /.well-known/openid-configuration`"
default = ""
}