-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
120 lines (101 loc) · 3.29 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
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
default = true
}
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
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 "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}
variable "random_password_length" {
description = "The desired length of random password created by this module"
default = 24
}
variable "mariadb_server_name" {
description = "Name of the MariaDB server"
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 "mariadb_settings" {
description = "MariaDB server settings"
type = object({
sku_name = string
version = string
storage_mb = number
auto_grow_enabled = optional(bool)
backup_retention_days = optional(number)
geo_redundant_backup_enabled = optional(bool)
public_network_access_enabled = optional(bool)
ssl_enforcement_enabled = bool
create_mode = optional(string)
creation_source_server_id = optional(any)
restore_point_in_time = optional(any)
database_name = string
charset = string
collation = string
})
}
variable "storage_account_name" {
description = "The name of the storage account name"
default = null
}
variable "mariadb_configuration" {
description = "Sets a MariaDB Configuration value on a MariaDB Server"
type = map(string)
default = {}
}
variable "firewall_rules" {
description = "Range of IP addresses to allow firewall connections."
type = map(object({
start_ip_address = string
end_ip_address = string
}))
default = null
}
variable "subnet_id" {
description = "The resource ID of the subnet"
default = null
}
variable "enable_logs_to_storage_account" {
description = "Create a storage account where logs should be sent"
default = false
}
variable "enable_private_endpoint" {
description = "Manages a Private Endpoint to Azure database for MySQL"
default = false
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "existing_private_dns_zone" {
description = "Name of the existing private DNS zone"
default = null
}
variable "private_subnet_address_prefix" {
description = "The name of the subnet for private endpoints"
default = null
}
variable "extaudit_diag_logs" {
description = "Database Monitoring Category details for Azure Diagnostic setting"
default = ["MySqlSlowLogs", "MySqlAuditLogs"]
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}