You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| maintenance\_window\_update\_track | The update track of maintenance window for the master instance maintenance. Can be either `canary` or `stable`. |`string`|`"canary"`| no |
38
38
| module\_depends\_on | List of modules or resources this module depends on. |`list(any)`|`[]`| no |
39
39
| name | The name of the Cloud SQL resources |`string`| n/a | yes |
40
+
| password\_validation\_policy\_config | The password validation policy settings for the database instance. | <pre>object({<br> enable_password_policy = bool<br> min_length = number<br> complexity = string<br> disallow_username_substring = bool<br> })</pre> |`null`| no |
40
41
| pricing\_plan | The pricing plan for the master instance. |`string`|`"PER_USE"`| no |
41
42
| project\_id | The project ID to manage the Cloud SQL resources |`string`| n/a | yes |
42
43
| random\_instance\_name | Sets random suffix at the end of the Cloud SQL resource name |`bool`|`false`| no |
| read\_replicas | List of read replicas to create. Encryption key is required for replica in different region. For replica in same region as master set encryption\_key\_name = null | <pre>list(object({<br> name = string<br> name_override = optional(string)<br> tier = string<br> zone = string<br> availability_type = string<br> disk_type = string<br> disk_autoresize = bool<br> disk_autoresize_limit = number<br> disk_size = string<br> user_labels = map(string)<br> database_flags = list(object({<br> name = string<br> value = string<br> }))<br> ip_configuration = object({<br> authorized_networks = list(map(string))<br> ipv4_enabled = bool<br> private_network = string<br> require_ssl = bool<br> allocated_ip_range = string<br> })<br> encryption_key_name = string<br> }))</pre> |`[]`| no |
46
47
| region | The region of the Cloud SQL resources |`string`|`"us-central1"`| no |
47
48
| replica\_database\_version | The read replica database version to use. This var should only be used during a database update. The update sequence 1. read-replica 2. master, setting this to an updated version will cause the replica to update, then you may update the master with the var database\_version and remove this field after update is complete |`string`|`""`| no |
49
+
| root\_password | Mysql password for the root user. If not set, a random one will be generated and available in the root\_password output variable. |`string`|`""`| no |
48
50
| secondary\_zone | The preferred zone for the secondary/failover instance, it should be something like: `us-central1-a`, `us-east1-c`. |`string`|`null`| no |
49
51
| tier | The tier for the master instance. |`string`|`"db-n1-standard-1"`| no |
50
52
| update\_timeout | The optional timout that is applied to limit long database updates. |`string`|`"10m"`| no |
Copy file name to clipboardExpand all lines: modules/mysql/metadata.yaml
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,21 @@ spec:
143
143
type: bool
144
144
default: true
145
145
required: false
146
+
- name: deletion_protection_enabled
147
+
description: Enables protection of an instance from accidental deletion protection across all surfaces (API, gcloud, Cloud Console and Terraform).
148
+
type: bool
149
+
default: false
150
+
required: false
151
+
- name: deny_maintenance_period
152
+
description: The Deny Maintenance Period fields to prevent automatic maintenance from occurring during a 90-day time period. See [more details](https://cloud.google.com/sql/docs/mysql/maintenance)
153
+
type: |-
154
+
list(object({
155
+
end_date = string
156
+
start_date = string
157
+
time = string
158
+
}))
159
+
default: []
160
+
required: false
146
161
- name: disk_autoresize
147
162
description: Configuration to increase storage size
148
163
type: bool
@@ -231,6 +246,16 @@ spec:
231
246
description: The name of the Cloud SQL resources
232
247
type: string
233
248
required: true
249
+
- name: password_validation_policy_config
250
+
description: The password validation policy settings for the database instance.
251
+
type: |-
252
+
object({
253
+
enable_password_policy = bool
254
+
min_length = number
255
+
complexity = string
256
+
disallow_username_substring = bool
257
+
})
258
+
required: false
234
259
- name: pricing_plan
235
260
description: The pricing plan for the master instance.
236
261
type: string
@@ -260,6 +285,7 @@ spec:
260
285
type: |-
261
286
list(object({
262
287
name = string
288
+
name_override = optional(string)
263
289
tier = string
264
290
zone = string
265
291
availability_type = string
@@ -293,6 +319,11 @@ spec:
293
319
type: string
294
320
default: ""
295
321
required: false
322
+
- name: root_password
323
+
description: Mysql password for the root user. If not set, a random one will be generated and available in the root_password output variable.
324
+
type: string
325
+
default: ""
326
+
required: false
296
327
- name: secondary_zone
297
328
description: 'The preferred zone for the secondary/failover instance, it should be something like: `us-central1-a`, `us-east1-c`.'
description="The password validation policy settings for the database instance."
220
+
type=object({
221
+
enable_password_policy =bool
222
+
min_length =number
223
+
complexity =string
224
+
disallow_username_substring =bool
225
+
})
226
+
default=null
227
+
}
228
+
218
229
// Read Replicas
219
230
variable"read_replicas" {
220
231
description="List of read replicas to create. Encryption key is required for replica in different region. For replica in same region as master set encryption_key_name = null"
@@ -291,6 +302,12 @@ variable "user_host" {
291
302
default="%"
292
303
}
293
304
305
+
variable"root_password" {
306
+
description="Mysql password for the root user. If not set, a random one will be generated and available in the root_password output variable."
307
+
type=string
308
+
default=""
309
+
}
310
+
294
311
variable"user_password" {
295
312
description="The password for the default user. If not set, a random one will be generated and available in the generated_user_password output variable."
Copy file name to clipboardExpand all lines: modules/postgresql/metadata.yaml
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,21 @@ spec:
145
145
type: bool
146
146
default: true
147
147
required: false
148
+
- name: deletion_protection_enabled
149
+
description: Enables protection of an instance from accidental deletion protection across all surfaces (API, gcloud, Cloud Console and Terraform).
150
+
type: bool
151
+
default: false
152
+
required: false
153
+
- name: deny_maintenance_period
154
+
description: The Deny Maintenance Period fields to prevent automatic maintenance from occurring during a 90-day time period. See [more details](https://cloud.google.com/sql/docs/postgres/maintenance)
155
+
type: |-
156
+
list(object({
157
+
end_date = string
158
+
start_date = string
159
+
time = string
160
+
}))
161
+
default: []
162
+
required: false
148
163
- name: disk_autoresize
149
164
description: Configuration to increase storage size.
150
165
type: bool
@@ -278,6 +293,7 @@ spec:
278
293
type: |-
279
294
list(object({
280
295
name = string
296
+
name_override = optional(string)
281
297
tier = string
282
298
availability_type = string
283
299
zone = string
@@ -348,6 +364,8 @@ spec:
348
364
description: List of maps of additional users and passwords
349
365
- name: generated_user_password
350
366
description: The auto generated default user password if not input password was provided
367
+
- name: iam_user_emails
368
+
description: The list of the IAM users with the access to the Cloudsql instance
351
369
- name: instance_connection_name
352
370
description: The connection name of the master instance to be used in connection strings
0 commit comments