This repository has been archived by the owner on Nov 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
103 lines (88 loc) · 3.16 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
variable "tags" {
description = "(Required) map of tags for the deployment."
type = map
default = {}
}
variable convention {
description = "(Required) Naming convention to be used (check at the naming convention module for possible values)."
type = string
default = "cafrandom"
validation {
condition = contains(["cafrandom", "random", "passthrough", "cafclassic"], var.convention)
error_message = "Allowed values are cafrandom, random, passthrough or cafclassic."
}
}
variable "prefix" {
description = "(Optional) You can use a prefix to the name of the resource."
type = string
default = ""
}
variable "postfix" {
description = "(Optional) You can use a postfix to the name of the resource."
type = string
default = ""
}
variable "max_length" {
description = "(Optional) You can speficy a maximum length to the name of the resource."
type = string
default = "60"
}
variable "diagnostics_map" {
description = "(Required) contains the SA and EH details for operations diagnostics."
}
variable "log_analytics_workspace" {
description = "(Required) contains the log analytics workspace details for operations diagnostics."
}
variable "diagnostics_settings" {
description = "(Required) Map with the diagnostics settings. See the required structure in the following example or in the CAF diagnostics module documentation."
}
variable "resource_group_name" {
description = "(Required) Name of the resource group where to create the resource. Changing this forces a new resource to be created."
type = string
}
variable "location" {
description = "(Required) Specifies the Azure location to deploy the resource. Changing this forces a new resource to be created."
type = string
}
variable "sql_server" {
description = "(Required) SQL Server Configuration object, see Parameters section below."
# type = object
# ({
# name = string
# version = string
# admin = string
#
# #optional fields
# password = string ##if not specified, password will be generated by random
# connection_policy = string
# extended_auditing_policy = object({
# storage_account_access_key = string
# storage_endpoint = string
# retention_in_days = number
# })
# elastic_pool = object({
# name = string
# edition = string
# dtu = number
# db_dtu_min = number
# db_dtu_max = number
# pool_size = number
# })
# })
}
variable "subnet_id_list" {
description = "(Optional) List of subnet identifiers for the resource to be created."
type = map(string)
default = {}
}
variable "aad_admin" {
description = "(Optional) Azure AD object to use as SQL Server administrator."
# type = object({
# admin = {
# name = string #The login name of the principal to set as the server administrator
# id = string #The ID of the principal to set as the server administrator
# tenant_id = string #The Azure Tenant ID
# }
# })
default = {}
}