-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
173 lines (141 loc) · 4.5 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
################################################################################
# Common
################################################################################
variable "resource_group_name" {
description = "Name of the resource group"
type = string
}
variable "cluster_name" {
description = "Cluster name"
type = string
validation {
condition = length(var.cluster_name) <= 24 || length(var.cluster_name) >= 3
error_message = "Error: 3 <= len(cluster_name) <= 24"
}
}
variable "location" {
description = "Location of the resource group"
type = string
}
variable "tags" {
type = map(string)
default = {}
description = "AWS Tags common to all the resources created"
}
variable "cluster_oidc_url" {
description = "OIDC url for the cluster to create federated credential for"
type = string
}
################################################################################
# Database
################################################################################
variable "create_db" {
type = bool
description = "Create postgres flexible server database or not"
default = true
}
variable "postgres_version" {
default = "13"
description = "PostgreSQL version"
type = string
}
variable "database_name" {
type = string
description = "Name of the database in postgres"
default = "truefoundry"
}
variable "truefoundry_db_enable_override" {
type = bool
description = "Truefoundry db name override to be enabled"
default = false
}
variable "truefoundry_db_override_name" {
type = string
description = "Truefoundry db name override"
default = ""
}
variable "truefoundry_db_instance_class" {
type = string
description = "Instance class for DB"
default = "GP_Standard_D4ds_v5"
}
variable "truefoundry_db_allocated_storage" {
type = number
description = "Storage for DB"
default = 32768
}
variable "truefoundry_db_require_ssl" {
type = bool
description = "Require SSL for DB"
default = false
}
variable "truefoundry_db_vnet_name" {
description = "Name of the virtual network"
type = string
}
variable "truefoundry_db_subnet_cidr" {
type = string
description = "CIDR of the subnet which we should use for the db"
}
variable "truefoundry_db_private_dns_zone_id" {
type = string
description = "Private DNS zone ID"
}
variable "truefoundry_db_allowed_ip_range_start_ip_address" {
type = string
description = "IP range start address which is allowed to connect to DB"
}
variable "truefoundry_db_allowed_ip_range_end_ip_address" {
type = string
description = "IP range end address which is allowed to connect to DB"
}
################################################################################
# Container Registry
################################################################################
variable "create_acr" {
type = bool
description = "Create acr"
default = false
}
################################################################################
# Key vault
################################################################################
variable "create_kv" {
type = bool
description = "Create kv"
default = false
}
################################################################################
# Storage account
################################################################################
variable "create_blob_storage" {
type = bool
description = "Create blob storage"
default = false
}
################################################################################
# Mlfoundry-server
################################################################################
variable "mlfoundry_svc_acc" {
description = "Name of the mlfoundry service account"
default = "mlfoundry-server"
type = string
}
variable "mlfoundry_namespace" {
description = "Name of the mlfoundry namespace"
default = "truefoundry"
type = string
}
################################################################################
# Servicefoundry-server
################################################################################
variable "svcfoundry_svc_acc" {
description = "Name of the svcfoundry service account"
default = "servicefoundry-server"
type = string
}
variable "svcfoundry_namespace" {
description = "Name of the svcfoundry namespace"
default = "truefoundry"
type = string
}