-
Notifications
You must be signed in to change notification settings - Fork 2
/
inputs-optional.tf
256 lines (214 loc) · 7.4 KB
/
inputs-optional.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
variable "resource_group_name" {
description = "Name of existing resource group to deploy resources into"
type = string
default = null
}
variable "location" {
description = "Target Azure location to deploy the resource"
type = string
default = "UK South"
}
variable "pgsql_admin_username" {
description = "Admin username"
type = string
default = "pgadmin"
}
variable "pgsql_sku" {
description = "The PGSql flexible server instance sku"
type = string
default = "GP_Standard_D2s_v3"
}
variable "pgsql_storage_mb" {
description = "Max storage allowed for the PGSql Flexibile instance"
type = number
default = 65536
}
variable "pgsql_storage_tier" {
description = "The storage tier, this should be left as null but may need to be overriden to allow increased storage."
type = string
default = null
}
variable "pgsql_server_configuration" {
description = "Postgres server configuration"
type = list(object({ name : string, value : string }))
default = [{
name = "backslash_quote"
value = "on"
}]
}
variable "pgsql_firewall_rules" {
description = "Postgres firewall rules"
type = list(object({ name : string, start_ip_address : string, end_ip_address : string }))
default = []
}
variable "name" {
default = ""
description = "The default name will be product+component+env, you can override the product+component part by setting this"
}
variable "backup_retention_days" {
default = 35
description = "Backup retention period in days for the PGSql instance. Valid values are between 7 & 35 days"
}
variable "geo_redundant_backups" {
default = false
description = "Enable geo-redundant backups for the PGSql instance."
}
variable "create_mode" {
default = "Default"
description = "The creation mode which can be used to restore or replicate existing servers"
}
variable "restore_time" {
default = null
description = "The point in time to restore. Only used when create mode is set to PointInTimeRestore"
}
variable "source_server_id" {
default = null
description = "Source server ID for point in time restore. Only used when create mode is set to PointInTimeRestore"
}
variable "admin_user_object_id" {
default = null
description = "The ID of the principal to be granted admin access to the database server, should be the principal running this normally. If you are using Jenkins pass through the variable 'jenkins_AAD_objectId'."
}
variable "enable_read_only_group_access" {
type = bool
default = true
description = "Enables read only group support for accessing the database"
}
variable "collation" {
type = string
default = "en_GB.utf8"
description = "Specifies the Collation for the Azure PostgreSQL Flexible Server Database, which needs to be a valid PostgreSQL Collation."
}
variable "charset" {
type = string
default = "utf8"
description = "Specifies the Charset for the Azure PostgreSQL Flexible Server Database, which needs to be a valid PostgreSQL Charset."
}
variable "high_availability" {
type = bool
default = null
description = "Overrides the automatic selection of high availability mode for the PostgreSQL Flexible Server. Generally you shouldn't set this yourself."
}
variable "public_access" {
type = bool
default = false
description = "Specifies whether or not public access is allowed for this PostgreSQL Flexible Server. Defaults to false."
}
variable "force_user_permissions_trigger" {
default = ""
type = string
description = "Update this to a new value to force the user permissions script to run again"
}
variable "enable_schema_ownership" {
type = bool
default = false
description = "Enables the schema ownership script. Change this to true if you want to use the script. Defaults to false"
}
variable "force_schema_ownership_trigger" {
default = ""
type = string
description = "Update this to a new value to force the schema ownership script to run again."
}
variable "kv_subscription" {
default = "DCD-CNP-DEV"
type = string
description = "Update this with the name of the subscription where the single server key vault is. Defaults to DCD-CNP-DEV."
}
variable "kv_name" {
default = ""
type = string
description = "Update this with the name of the key vault that stores the single server secrets. Defaults to product-env."
}
variable "user_secret_name" {
default = ""
type = string
description = "Update this with the name of the secret that stores the single server username. Defaults to product-componenet-POSTGRES-USER."
}
variable "pass_secret_name" {
default = ""
type = string
description = "Update this with the name of the secret that stores the single server password. Defaults to product-componenet-POSTGRES-PASS."
}
variable "subnet_suffix" {
default = null
type = string
description = "Suffix to append to the subnet name, the originally created one used by this module is full in a number of environments."
}
variable "auto_grow_enabled" {
type = bool
default = false
description = "Specifies whether the storage auto grow for PostgreSQL Flexible Server is enabled? Defaults to false."
}
variable "trigger_password_reset" {
type = string
default = ""
description = "Setting this to a different value, e.g. '1' will trigger terraform to rotate the password."
}
variable "enable_qpi" {
type = bool
default = false
description = "Enables Query Performance Insight. Creates Log Analytics workspace and diagnostic setting needed"
}
variable "action_group_name" {
description = "The name of the Action Group to create."
type = string
default = "db_alerts_action_group_name"
}
variable "email_receivers" {
description = "A map of email receivers, with keys as names and values as email addresses."
type = map(string)
default = {}
}
variable "sms_receivers" {
description = "A map of SMS receivers, with keys as names and values as maps containing country code and phone number."
type = map(object({
country_code = string
phone_number = string
}))
default = {}
}
variable "webhook_receivers" {
description = "A map of webhook receivers, with keys as names and values as URLs."
type = map(string)
default = {}
}
variable "cpu_threshold" {
default = 80
type = number
description = "Average CPU utilisation threshold"
}
variable "memory_threshold" {
default = 80
type = number
description = "Average memory utilisation threshold"
}
variable "storage_threshold" {
default = 80
type = number
description = "Average storage utilisation threshold"
}
variable "alert_severity" {
description = "The severity level of the alert (1=Critical, 2=Warning ...)."
type = number
default = 1
}
variable "alert_frequency" {
description = "The frequency of the alert check."
type = string
default = "PT5M"
}
variable "alert_window_size" {
description = "The period over which the metric is evaluated."
type = string
default = "PT15M"
}
variable "email_address_key" {
description = "Email address key in azure Key Vault."
type = string
default = ""
}
variable "email_address_key_vault_id" {
description = "Email address Key Vault Id."
type = string
default = ""
}