-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
variables.tf
198 lines (161 loc) · 5.59 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
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
type = bool
default = true
}
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "storage_account_name" {
description = "The name of the storage account name"
default = null
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "random_password_length" {
description = "The desired length of random password created by this module"
default = 32
}
variable "enable_sql_server_extended_auditing_policy" {
description = "Manages Extended Audit policy for SQL servers"
default = true
}
variable "enable_database_extended_auditing_policy" {
description = "Manages Extended Audit policy for SQL database"
default = false
}
variable "enable_threat_detection_policy" {
description = ""
default = false
}
variable "sqlserver_name" {
description = "SQL server Name"
default = ""
}
variable "admin_username" {
description = "The administrator login name for the new SQL Server"
default = null
}
variable "admin_password" {
description = "The password associated with the admin_username user"
default = null
}
variable "database_name" {
description = "The name of the database"
default = ""
}
variable "sql_database_edition" {
description = "The edition of the database to be created"
default = "Standard"
}
variable "sqldb_service_objective_name" {
description = " The service objective name for the database"
default = "S1"
}
variable "log_retention_days" {
description = "Specifies the number of days to keep in the Threat Detection audit logs"
default = "30"
}
variable "threat_detection_audit_logs_retention_days" {
description = "Specifies the number of days to keep in the Threat Detection audit logs."
default = 0
}
variable "enable_vulnerability_assessment" {
description = "Manages the Vulnerability Assessment for a MS SQL Server"
default = false
}
variable "email_addresses_for_alerts" {
description = "A list of email addresses which alerts should be sent to."
type = list(any)
default = []
}
variable "disabled_alerts" {
description = "Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action."
type = list(any)
default = []
}
variable "ad_admin_login_name" {
description = "The login name of the principal to set as the server administrator"
default = null
}
variable "identity" {
description = "If you want your SQL Server to have an managed identity. Defaults to false."
default = false
}
variable "enable_firewall_rules" {
description = "Manage an Azure SQL Firewall Rule"
default = false
}
variable "enable_failover_group" {
description = "Create a failover group of databases on a collection of Azure SQL servers"
default = false
}
variable "secondary_sql_server_location" {
description = "Specifies the supported Azure location to create secondary sql server resource"
default = "northeurope"
}
variable "enable_private_endpoint" {
description = "Manages a Private Endpoint to SQL database"
default = false
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "private_subnet_address_prefix" {
description = "The name of the subnet for private endpoints"
default = null
}
variable "existing_vnet_id" {
description = "The resoruce id of existing Virtual network"
default = null
}
variable "existing_subnet_id" {
description = "The resource id of existing subnet"
default = null
}
variable "existing_private_dns_zone" {
description = "Name of the existing private DNS zone"
default = null
}
variable "firewall_rules" {
description = "Range of IP addresses to allow firewall connections."
type = list(object({
name = string
start_ip_address = string
end_ip_address = string
}))
default = []
}
variable "enable_log_monitoring" {
description = "Enable audit events to Azure Monitor?"
default = false
}
variable "initialize_sql_script_execution" {
description = "Allow/deny to Create and initialize a Microsoft SQL Server database"
default = false
}
variable "sqldb_init_script_file" {
description = "SQL Script file name to create and initialize the database"
default = ""
}
variable "log_analytics_workspace_id" {
description = "Specifies the ID of a Log Analytics Workspace where Diagnostics Data to be sent"
default = null
}
variable "storage_account_id" {
description = "The name of the storage account to store the all monitoring logs"
default = null
}
variable "extaudit_diag_logs" {
description = "Database Monitoring Category details for Azure Diagnostic setting"
default = ["SQLSecurityAuditEvents", "SQLInsights", "AutomaticTuning", "QueryStoreRuntimeStatistics", "QueryStoreWaitStatistics", "Errors", "DatabaseWaitStatistics", "Timeouts", "Blocks", "Deadlocks"]
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}