File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ module "mysql-db" {
8585| master\_ instance\_ name | The name of the existing instance that will act as the master in the replication setup. | ` string ` | ` null ` | no |
8686| module\_ depends\_ on | List of modules or resources this module depends on. | ` list(any) ` | ` [] ` | no |
8787| name | The name of the Cloud SQL resources | ` string ` | n/a | yes |
88- | 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 |
88+ | password\_ validation\_ policy\_ config | The password validation policy settings for the database instance. | <pre >object({<br > enable_password_policy = bool<br > min_length = optional( number) <br > complexity = optional( string) <br > disallow_username_substring = optional( bool)< br > reuse_interval = optional(number) <br > })</pre > | ` null ` | no |
8989| pricing\_ plan | The pricing plan for the master instance. | ` string ` | ` "PER_USE" ` | no |
9090| project\_ id | The project ID to manage the Cloud SQL resources | ` string ` | n/a | yes |
9191| random\_ instance\_ name | Sets random suffix at the end of the Cloud SQL resource name | ` bool ` | ` false ` | no |
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ resource "google_sql_database_instance" "default" {
125125 min_length = lookup (password_validation_policy. value , " min_length" , null )
126126 complexity = lookup (password_validation_policy. value , " complexity" , null )
127127 disallow_username_substring = lookup (password_validation_policy. value , " disallow_username_substring" , null )
128+ reuse_interval = lookup (password_validation_policy. value , " reuse_interval" , null )
128129 }
129130 }
130131 dynamic "ip_configuration" {
Original file line number Diff line number Diff line change @@ -337,9 +337,10 @@ variable "password_validation_policy_config" {
337337 description = " The password validation policy settings for the database instance."
338338 type = object ({
339339 enable_password_policy = bool
340- min_length = number
341- complexity = string
342- disallow_username_substring = bool
340+ min_length = optional (number )
341+ complexity = optional (string )
342+ disallow_username_substring = optional (bool )
343+ reuse_interval = optional (number )
343344 })
344345 default = null
345346}
You can’t perform that action at this time.
0 commit comments