We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca5ae58 commit 830691dCopy full SHA for 830691d
1 file changed
roles.tf
@@ -1,8 +1,20 @@
1
resource "random_password" "role" {
2
for_each = var.roles
3
4
- length = 48
+ length = 48
5
+ min_lower = 0
6
+ min_numeric = 0
7
+ min_special = 0
8
+ min_upper = 0
9
+
10
+ lower = true
11
+ number = true
12
special = false
13
+ upper = true
14
15
+ lifecycle {
16
+ ignore_changes = [lower, number, special, upper]
17
+ }
18
}
19
20
resource "postgresql_role" "role" {
@@ -134,4 +146,3 @@ resource "postgresql_grant" "role_rw" {
134
146
objects = []
135
147
with_grant_option = false
136
148
137
-
0 commit comments