Skip to content

Commit 830691d

Browse files
author
Evy Bongers
authored
Support migrated resources with different password requirements (#6)
1 parent ca5ae58 commit 830691d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

roles.tf

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
resource "random_password" "role" {
22
for_each = var.roles
33

4-
length = 48
4+
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
512
special = false
13+
upper = true
14+
15+
lifecycle {
16+
ignore_changes = [lower, number, special, upper]
17+
}
618
}
719

820
resource "postgresql_role" "role" {
@@ -134,4 +146,3 @@ resource "postgresql_grant" "role_rw" {
134146
objects = []
135147
with_grant_option = false
136148
}
137-

0 commit comments

Comments
 (0)