-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
186 lines (156 loc) · 4.12 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
variable "name" {
default = ""
type = string
description = "Prefix of the resource name."
}
variable "location" {
default = "eastus"
type = string
description = "Location of the resource."
}
variable "environment" {
description = "Enviornment tag of the pg server"
type = string
default = ""
}
variable "resource_group_name" {
description = "Specify the name of the resource group to be created"
type = string
default = "pg-flexible"
}
variable "resource_group_location" {
description = "Specify the region of the resource group to be created"
type = string
default = ""
}
variable "create_vnet" {
description = "Set to 'true' to create a fresh VNet for the database server."
type = bool
default = false
}
variable "vnet_resource_group_name" {
description = "If VNet creation is set to false, specify the resource group name where the VNet is present."
type = string
default = ""
}
variable "vnet_name" {
description = "If VNet creation is set to false, specify the VNet name here."
type = string
default = ""
}
variable "vnet_id" {
description = "If VNet creation is set to false, specify the VNet ID here."
type = string
default = ""
}
variable "vnet_address_space" {
description = "VNet will be created with specified CIDR ranges. Do not specify while passing an existing VNet resource group, name, and ID."
type = string
default = ""
}
variable "subnet_cidr" {
description = "New subnet will be created with 'Microsoft.Storage' service endpoint."
type = string
default = ""
}
variable "administrator_username" {
description = "Administrator username for the MySQL server."
type = string
default = ""
}
variable "administrator_password" {
description = "Administrator password for the MySQL server."
type = string
default = ""
}
variable "sku_name" {
description = "SKU name for the MySQL server."
type = string
default = ""
}
variable "mysql_version" {
description = "Version of MySQL server."
type = string
default = "8.0.21"
}
variable "auto_grow_enabled" {
description = "Enable auto grow for storage."
type = bool
default = true
}
variable "iops" {
description = "IOPS for storage."
type = string
default = "5000"
}
variable "storage_size_gb" {
description = "Storage size in GB for the MySQL server."
type = string
default = "128"
}
variable "backup_retention_days" {
description = "Number of days to retain backups."
type = string
default = "30"
}
variable "geo_redundant_backup_enabled" {
description = "Enable geo-redundant backups."
type = bool
default = true
}
variable "zones" {
description = "Availability zones for the MySQL server."
type = string
default = "2"
}
variable "db_collation" {
description = "Collation for the MySQL database."
type = string
default = "utf8_unicode_ci"
}
variable "db_charset" {
description = "Character set for the MySQL database."
type = string
default = "utf8"
}
variable "diagnostics_enabled" {
description = "Enable diagnostics for logging and monitoring."
type = bool
default = false
}
variable "start_ip_address" {
description = "Start IP address for the firewall rule."
type = string
default = ""
}
variable "end_ip_address" {
description = "End IP address for the firewall rule."
type = string
default = ""
}
variable "tags" {
description = "The tags to associate with your network and subnets."
type = map(string)
default = {
tag1 = ""
tag2 = ""
}
}
variable "maintenance_window" {
description = "Maintenance window settings."
type = map(any)
default = {
day_of_week = 3
start_hour = 3
start_minute = 0
}
}
variable "mysql_configurations" {
type = map(string)
default = {
innodb_buffer_pool_size = "12884901888"
max_allowed_packet = "536870912"
table_definition_cache = "5000"
table_open_cache = "5000"
}
}