-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
545 lines (502 loc) · 15.6 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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
// Application Related Information
variable "ownerinfo" {
description = "The service primcipal role assignment name"
}
variable "deployment_type" {
description = "The service primcipal role assignment name"
}
variable "notification_dist_list" {
description = "The service primcipal role assignment name"
}
variable "environment" {
description = "The service primcipal role assignment name"
}
// Service Principle Object Id
variable "sp_object_id" {
description = "Service Principal Object ID in Non prod Azure subscription"
}
variable "read_access_object_id" {
description = "Read Access Object ID in Non prod Azure subscription"
}
//variable "state_storage_account_name" {
// description = "Storage account to house .tfstate of persistent resources deployed using terraform scripts"
//}
//variable "state_resource_group_name" {
// description = "Resource group to house .tfstate of persistent resources deployed using terraform scripts"
//}
//variable "state_storage_container_name" {
// description = "Storage Container to house .tfstate of persistent resources deployed using terraform scripts"
//}
//variable "state_key" {
// description = "State_key that houses .tfstate of persistent resources deployed using terraform scripts"
//}
// Resource Groups
variable "persistent_rg" {
description = "Resource group to house Persistent resources deployed using terraform scripts"
}
variable "hive_metastore_rg" {
description = "Resource group to house Hive Metastore resources deployed using terraform scripts"
}
variable "virtual_machine_rg" {
description = "Resource group to house VM resources deployed using terraform scripts"
}
variable "location" {
description = "Location to deploy resources"
}
// Key vault
variable "kv_name" {
description = "Name of Key vault to house ude keys/secrets/certifictaes."
}
variable "kv_sku_name" {
description = "Type of SKU for Key vault to house ude keys/secrets/certifictaes."
}
variable "kv_key_permissions" {
description = "Key permissions for Key vault."
}
variable "kv_secret_permissions" {
description = "Secret permissions for Key vault."
}
variable "network_acls_action" {
description = "Action for Network ACL"
}
variable "network_acls_bypass" {
description = "Bypass option for Network ACL"
}
// Key
variable "key_name" {
description = "Name of Key from UDE Key vault"
}
variable "key_type" {
description = "Type of Key from UDE Key vault"
}
variable "key_size" {
description = "Size of Key from UDE Key vault"
}
variable "key_opts" {
description = "Options for Key in UDE Key vault"
type = "list"
}
# Networking : Persistent
variable "persistent_vnet_name" {
description = "The name of the virtual network."
}
variable "persistent_vnet_address_space" {
description = "The address space that is used for the virtual network."
type = "list"
}
variable "persistent_subnet_name" {
description = "The name of the subnet to create in the virtual network."
}
variable "persistent_address_prefix" {
description = "The address prefix of the subnet."
}
variable "persistent_subnet_service_endpoints" {
description = "The service endpoints that are used for subnet."
type = "list"
}
variable "network_ip_rules" {
description = "The ip rules of network of the storage account."
type = "list"
default = [
"198.203.177.177",
"198.203.175.175",
"198.203.181.181",
"168.183.84.12",
"149.111.26.128",
"149.111.28.128",
"149.111.30.128",
"220.227.15.70",
"203.39.148.18",
"161.249.192.14",
"161.249.72.14",
"161.249.80.14",
"161.249.96.14",
"161.249.144.14",
"161.249.176.14",
"161.249.16.0/23",
"12.163.96.0/24",
]
}
// NSG
variable "persistent_nsg" {
description = "The name of the virtual network."
}
variable "persistent_inbound_nsg_rule_1_name" {
description = "The name of the inbound nsg rule."
}
variable "nsg_rule_1_name_source_address_prefix" {
description = "The address prefix of the inbound nsg rule."
}
variable "persistent_inbound_nsg_rule_2_name" {
description = "The name of the virtual network."
}
variable "nsg_rule_2_name_source_address_prefix" {
description = "The address prefix of the inbound nsg rule."
}
variable "persistent_inbound_nsg_rule_3_name" {
description = "The name of the virtual network."
}
variable "nsg_rule_3_name_source_address_prefix" {
description = "The address prefix of the inbound nsg rule."
}
variable "persistent_outbound_nsg_rule" {
description = "The name of the virtual network."
}
variable "persitent_nsg_application_name" {
description = "The name of the virtual network."
}
variable "persitent_nsg_platform" {
description = "The name of the virtual network."
}
// VIRTUAL MACHINE
variable "vm_vnet_name" {
description = "The name of the VM virtual network."
}
variable "vm_vnet_address_space" {
description = "The address space that is used for the VM virtual network."
type = "list"
}
variable "bastion_subnet_name" {
description = "The name of the bastion subnet."
}
variable "bastion_address_prefix" {
description = "The address prefix of the bastion subnet."
}
variable "vm_subnet_name" {
description = "The name of the subnet to create in the VM virtual network."
}
variable "vm_address_prefix" {
description = "The address prefix of the VM subnet."
}
// NETWORK SECURITY GROUP
variable "vm_nsg" {
description = "The name of the NSG for VM virtual network."
}
variable "vm_nsg_rule_1_name" {
description = "The name of the inbound nsg rule 01."
}
variable "vm_nsg_rule_2_name" {
description = "The name of the inbound nsg rule 02."
}
variable "vm_nsg_rule_3_name" {
description = "The name of the inbound nsg rule 03."
}
variable "vm_nsg_rule_3_source_address_prefix" {
description = "The address prefix of the inbound nsg rule."
}
variable "vm_nsg_rule_3_destination_address_prefix" {
description = "The address prefix of the inbound nsg rule."
}
variable "vm_nsg_rule_4_name" {
description = "The name of the inbound nsg rule 04."
}
variable "vm_nsg_rule_4_destination_address_prefixes" {
description = "The address prefixes of the inbound nsg rule."
type = "list"
}
// NETWORK INTERFACE
variable "vm_nic_name" {
description = "The name of the VM Network Interface."
}
variable "vm_nic_config_name" {
description = "The name of configuration of VM Network Interface"
}
variable "vm_private_ip_allocation" {
description = "The type of allocation for Private IP of VM Network Interface"
}
// PUBLIC IP ADDRESS
variable "vm_public_ip_name" {
description = "The name of Public IP of VM"
}
variable "vm_public_ip_allocation" {
description = "The type of allocation for Public IP of VM"
}
variable "sku_type" {
description = "The type of SKU for Public IP of VM"
}
// SQL Server : Hive Metastore
variable "sqlserver_name" {
description = "The name of the virtual network."
}
variable "sqlserver_login" {
description = "The name of the virtual network."
}
variable "sqlserver_pwd" {
description = "The name of the virtual network."
}
variable "sqlserver_version" {
description = "The name of the virtual network."
}
variable "sqlserver_firewall_rule_name" {
description = "The name of the virtual network."
}
variable "sqlserver_firewall_startip" {
description = "The name of the virtual network."
}
variable "sqlserver_firewall_endip" {
description = "The name of the virtual network."
}
variable "sqlserver_ad_admin_login" {
description = "The name of the virtual network."
}
variable "sqldb_name" {
description = "The name of the virtual network."
}
variable "sqldb_edition" {
description = "The name of the virtual network."
}
variable "sqldb_service_objective_name" {
description = "The name of the virtual network."
}
variable "sqlserver_App_name" {
description = "The name of the virtual network."
}
variable "sqlserver_platform" {
description = "The name of the virtual network."
}
// Storage : Hive Metastore
variable "hive_storage_name" {
description = "The name of the storage account."
}
variable "hive_storage_account_kind" {
description = "The kind of the storage account."
}
variable "hive_storage_account_tier" {
description = "The account tier of the storage account."
}
variable "hive_storage_account_replication_type" {
description = "The replication type of the storage account."
}
variable "hive_storage_access_tier" {
description = "The access tier of the storage account."
}
variable "hive_storage_account_encryption_source" {
description = "The encryption source of the storage account."
}
variable "hive_storage_App_name" {
description = "The environment tag of the storage account."
}
variable "hive_storage_platform" {
description = "The environment tag of the storage account."
}
// SQL Server : Datawarehouse
variable "sqldwserver_name" {
description = "The name of the virtual network."
}
variable "sqldwserver_login" {
description = "The name of the virtual network."
}
variable "sqldwserver_pwd" {
description = "The name of the virtual network."
}
variable "sqldwserver_version" {
description = "The name of the virtual network."
}
//variable "ude_sqlserver_firewall_rule_name" {
// description = "The name of the virtual network."
//}
//variable "ude_sqlserver_firewall_startip" {
// description = "The name of the virtual network."
//}
//variable "ude_sqlserver_firewall_endip" {
// description = "The name of the virtual network."
//}
variable "sqldwserver_ad_admin_login" {
description = "The name of the virtual network."
}
variable "sqldwdb_name" {
description = "The name of the virtual network."
}
variable "sqldwdb_edition" {
description = "The name of the virtual network."
}
variable "sqldwdb_service_objective_name" {
description = "The name of the virtual network."
}
variable "sqldwserver_App_name" {
description = "The name of the virtual network."
}
variable "sqldwserver_platform" {
description = "The name of the virtual network."
}
// Storage : SQL Datawarehouse
variable "sqldw_storage_name" {
description = "The name of the storage account."
}
variable "sqldw_storage_account_kind" {
description = "The kind of the storage account."
}
variable "sqldw_storage_account_tier" {
description = "The account tier of the storage account."
}
variable "sqldw_storage_account_replication_type" {
description = "The replication type of the storage account."
}
variable "sqldw_storage_access_tier" {
description = "The access tier of the storage account."
}
variable "sqldw_storage_account_encryption_source" {
description = "The encryption source of the storage account."
}
variable "sqldw_storage_App_name" {
description = "The environment tag of the storage account."
}
variable "sqldw_storage_platform" {
description = "The environment tag of the storage account."
}
// Storage : HDFS
variable "HDFS_storage_name" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_account_kind" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_account_tier" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_account_replication_type" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_access_tier" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_account_encryption_source" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_bypass" {
description = "The environment tag of the storage account."
}
variable "HDFS_network_rule_default_action" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_App_name" {
description = "The environment tag of the storage account."
}
variable "HDFS_storage_platform" {
description = "The environment tag of the storage account."
}
variable "nice_container_name" {
description = "The HDFS container name of blob storage account."
}
variable "nice_container_access_type" {
description = "The HDFS container access type of blob storage account."
}
variable "netezza_container_name" {
description = "The HDFS container name of Netezza blob storage account."
}
variable "netezza_container_access_type" {
description = "The HDFS container access type of Netezza blob storage account."
}
// Storage : Landing Zone
variable "landingzone_storage_name" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_account_kind" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_account_tier" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_account_replication_type" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_access_tier" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_account_encryption_source" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_bypass" {
description = "The environment tag of the storage account."
}
variable "landingzone_network_rule_default_action" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_App_name" {
description = "The environment tag of the storage account."
}
variable "landingzone_storage_platform" {
description = "The environment tag of the storage account."
}
variable "landingzone_container_name" {
description = "The landing zone container name of blob storage account."
}
variable "landingzone_container_access_type" {
description = "The landing zone container access type of blob storage account."
}
# Role Definition
variable "BlobDataContributor_role_definition_name" {
description = "The service principal role assignment name"
}
variable "readaccess_role_definition_name" {
description = "The read access role assignment name"
}
variable "persistent_managed_identity_name" {
description = "The persistent Managed Identity name"
}
// Monitoring
variable "action_group" {
description = "The service principal role assignment name"
}
variable "admin_email" {
description = "The service principal role assignment name"
}
variable "devops_email" {
description = "The service principal role assignment name"
}
variable "oncall_msg" {
description = "The service principal role assignment name"
}
// Virtual Machine
variable "vm_name" {
description = "UDE Virtual Machine Name."
}
variable "vm_size" {
description = "UDE Virtual Machine Size."
}
variable "image_publisher" {
description = "UDE Virtual Machine Image Publisher."
}
variable "image_offer" {
description = "UDE Virtual Machine Image Offer."
}
variable "image_sku" {
description = "UDE Virtual Machine Image SKU type."
}
variable "image_version" {
description = "UDE Virtual Machine Image Version."
}
variable "disk_name" {
description = "UDE Virtual Machine Disk name."
}
variable "disk_caching" {
description = "UDE Virtual Machine Disk Caching."
}
variable "disk_create_option" {
description = "UDE Virtual Machine Disk create option."
}
variable "disk_ostype" {
description = "UDE Virtual Machine Disk OS type."
}
variable "disk_managed_disk_type" {
description = "UDE Virtual Machine Disk managed type."
}
variable "profile_computer_name" {
description = "UDE Virtual Machine Profile computer name."
}
variable "profile_admin_usr" {
description = "UDE Virtual Machine profile admin name."
}
variable "profile_admin_pwd" {
description = "UDE Virtual Machine profile admin password."
}
variable "profile_win_config_timezone" {
description = "UDE Virtual Machine profile time Zone."
}
// Bastion
variable "vm_bastion_name" {
description = "UDE Virtual Machine Bastion Name."
}
variable "vm_bastion_config" {
description = "UDE Virtual Machine bastion Configuration."
}