forked from MaterializeInc/terraform-azurerm-materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
140 lines (124 loc) · 3.76 KB
/
variables.tf
File metadata and controls
140 lines (124 loc) · 3.76 KB
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
variable "namespace" {
description = "Namespace for all resources, usually the organization or project name"
type = string
validation {
condition = length(var.namespace) <= 18 && can(regex("^[a-z0-9-]+$", var.namespace))
error_message = "Namespace must be lowercase alphanumeric and hyphens only, max 18 characters"
}
default = "materialize"
}
variable "resource_group_name" {
description = "The name of the resource group"
type = string
}
variable "location" {
description = "The location where resources will be created"
type = string
default = "eastus2"
}
variable "prefix" {
description = "Prefix to be used for resource names"
type = string
default = "materialize"
}
variable "network_config" {
description = "Network configuration for the AKS cluster"
type = object({
vnet_address_space = string
subnet_cidr = string
service_cidr = string
})
default = {
vnet_address_space = "10.0.0.0/16"
subnet_cidr = "10.0.0.0/20"
service_cidr = "10.1.0.0/16"
docker_bridge_cidr = "172.17.0.1/16"
}
}
variable "aks_config" {
description = "AKS cluster configuration"
type = object({
vm_size = string
disk_size_gb = number
min_nodes = number
max_nodes = number
})
default = {
vm_size = "Standard_D8s_v3"
disk_size_gb = 100
min_nodes = 1
max_nodes = 5
}
}
variable "database_config" {
description = "Azure Database for PostgreSQL configuration"
type = object({
sku_name = optional(string, "GP_Standard_D2s_v3")
postgres_version = optional(string, "15")
password = string
username = optional(string, "materialize")
db_name = optional(string, "materialize")
})
validation {
condition = var.database_config.password != null
error_message = "database_config.password must be provided"
}
}
variable "tags" {
description = "Tags to apply to all resources"
type = map(string)
default = {}
}
# Materialize Helm Chart Variables
variable "install_materialize_operator" {
description = "Whether to install the Materialize operator"
type = bool
default = true
}
variable "helm_chart" {
description = "Chart name from repository or local path to chart. For local charts, set the path to the chart directory."
type = string
default = "materialize-operator"
}
variable "use_local_chart" {
description = "Whether to use a local chart instead of one from a repository"
type = bool
default = false
}
variable "operator_version" {
description = "Version of the Materialize operator to install"
type = string
default = "v25.1.0"
}
variable "operator_namespace" {
description = "Namespace for the Materialize operator"
type = string
default = "materialize"
}
variable "orchestratord_version" {
description = "Version of the Materialize orchestrator to install"
type = string
default = "v0.130.3"
}
variable "helm_values" {
description = "Additional Helm values to merge with defaults"
type = any
default = {}
}
variable "materialize_instances" {
description = "Configuration for Materialize instances"
type = list(object({
name = string
namespace = optional(string)
database_name = string
environmentd_version = optional(string, "v0.130.3")
cpu_request = optional(string, "1")
memory_request = optional(string, "1Gi")
memory_limit = optional(string, "1Gi")
create_database = optional(bool, true)
in_place_rollout = optional(bool, false)
request_rollout = optional(string)
force_rollout = optional(string)
}))
default = []
}