File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/modules/postgresql-user Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
enabled = module. this . enabled
3
3
4
4
db_user = length (var. db_user ) > 0 ? var. db_user : var. service_name
5
- db_password = length (var. db_password ) > 0 ? var. db_password : join (" " , random_password. db_password . * . result )
5
+ db_password = length (var. db_password ) > 0 ? var. db_password : join (" " , random_password. db_password [ * ] . result )
6
6
7
7
save_password_in_ssm = local. enabled && var. save_password_in_ssm
8
8
@@ -45,7 +45,7 @@ resource "postgresql_role" "default" {
45
45
# Apply the configured grants to the user
46
46
resource "postgresql_grant" "default" {
47
47
count = local. enabled ? length (var. grants ) : 0
48
- role = join (" " , postgresql_role. default . * . name )
48
+ role = join (" " , postgresql_role. default [ * ] . name )
49
49
database = var. grants [count . index ]. db
50
50
schema = var. grants [count . index ]. schema
51
51
object_type = var. grants [count . index ]. object_type
You can’t perform that action at this time.
0 commit comments