Skip to content

Commit

Permalink
fix: Add min_lower param to password (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karina5005 authored Jan 10, 2024
1 parent b0eee74 commit 89b0098
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ No modules.
| <a name="input_lc_ctype"></a> [lc\_ctype](#input\_lc\_ctype) | Character classification `LC_CTYPE` to use in the database | `string` | `"C"` | no |
| <a name="input_make_owner"></a> [make\_owner](#input\_make\_owner) | Set role as an owner of database | `bool` | `false` | no |
| <a name="input_name"></a> [name](#input\_name) | The name of the database | `string` | n/a | yes |
| <a name="input_password"></a> [password](#input\_password) | Owner role's password parameters | <pre>object({<br> length = optional(number, 20)<br> special = optional(bool, false)<br> min_numeric = optional(number, 2)<br> })</pre> | `{}` | no |
| <a name="input_password"></a> [password](#input\_password) | Owner role's password parameters | <pre>object({<br> length = optional(number, 20)<br> special = optional(bool, false)<br> min_numeric = optional(number, 2)<br> min_lower = optional(number, 2)<br> })</pre> | `{}` | no |
| <a name="input_privileges"></a> [privileges](#input\_privileges) | The list of privileges to grant role for the database | `list(string)` | <pre>[<br> "CONNECT",<br> "CREATE",<br> "TEMPORARY"<br>]</pre> | no |
| <a name="input_role"></a> [role](#input\_role) | The name of the role, default - name of database | `string` | `null` | no |

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "random_password" "password" {
length = var.password.length
special = var.password.special
min_numeric = var.password.min_numeric
min_lower = var.password.min_lower
}

resource "postgresql_role" "role" {
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ variable "password" {
length = optional(number, 20)
special = optional(bool, false)
min_numeric = optional(number, 2)
min_lower = optional(number, 2)
})
default = {}
}
Expand Down

0 comments on commit 89b0098

Please sign in to comment.