@@ -38,6 +38,7 @@ The following resources are used by this module:
38
38
- [ azurerm_mysql_firewall_rule.firewall] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_firewall_rule ) (resource)
39
39
- [ azurerm_mysql_server.server] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_server ) (resource)
40
40
- [ azurerm_mysql_virtual_network_rule.virtualnetworks] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_virtual_network_rule ) (resource)
41
+ - [ azurerm_private_endpoint.mysql-private-endpoint] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/private_endpoint ) (resource)
41
42
42
43
## Required Inputs
43
44
@@ -49,6 +50,19 @@ Description: Admin password
49
50
50
51
Type: ` string `
51
52
53
+ ### charset
54
+
55
+ Description: Charset for the databases, which needs to be a valid PostgreSQL charset
56
+
57
+ Type: ` string `
58
+
59
+ ### collation
60
+
61
+ Description: Collation for the databases, which needs to be a valid PostgreSQL collation. Note that Microsoft uses
62
+ different notation - f.e. en-US instead of en\_ US
63
+
64
+ Type: ` string `
65
+
52
66
### database\_ suffixes
53
67
54
68
Description: List of suffixes for databases to be created
@@ -94,7 +108,8 @@ Default: `"mysqladmin"`
94
108
### allowed\_ ips
95
109
96
110
Description: A hash of permissions to access the database server by ip. The hash key is the name suffix and each value
97
- has a start and an end value.
111
+ has a start and an end value. For public access set start\_ ip\_ address to 0.0.0.0 and end\_ ip\_ address to
112
+ 255.255.255.255. This variable is not used if public\_ access = false.
98
113
99
114
Type:
100
115
@@ -141,27 +156,30 @@ Default: `"8.0"`
141
156
142
157
### public\_ access
143
158
144
- Description: Wether to allow public access to the database server
159
+ Description: Wether to allow public access to the database server. True will create firewall rules for allowed\_ ips and for subnets. False will
160
+ create a private endpoint in each given subnet (allowed\_ ips will not be used then) - you have to set
161
+ enforce\_ private\_ link\_ endpoint\_ network\_ policies = true on your subnet in this case (see
162
+ https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet#enforce_private_link_endpoint_network_policies ).
145
163
146
164
Type: ` bool `
147
165
148
166
Default: ` false `
149
167
150
- ### suffix
168
+ ### subnets
151
169
152
- Description: Naming suffix to allow multiple instances of this module
170
+ Description: Maps of prefix => subnet id that has access to the server
153
171
154
- Type: ` string `
172
+ Type: ` map( string) `
155
173
156
- Default: ` "" `
174
+ Default: ` {} `
157
175
158
- ### virtual \_ networks
176
+ ### suffix
159
177
160
- Description: Maps of prefix => virtual network id that has access to the server
178
+ Description: Naming suffix to allow multiple instances of this module
161
179
162
- Type: ` map( string) `
180
+ Type: ` string `
163
181
164
- Default: ` {} `
182
+ Default: ` "" `
165
183
166
184
## Outputs
167
185
0 commit comments