We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 694223b commit 05fc86fCopy full SHA for 05fc86f
roles.tf
@@ -28,7 +28,7 @@ resource "postgresql_role" "role" {
28
login = true
29
replication = false
30
bypass_row_level_security = false
31
- connection_limit = -1
+ connection_limit = coalesce(each.value.connection_limit, -1)
32
encrypted_password = true
33
password = random_password.role[each.key].result
34
roles = concat(
variables.tf
@@ -5,7 +5,8 @@ variable "legacy_writers" {
5
6
variable "roles" {
7
type = map(object({
8
- databases_ro = list(string)
9
- databases_rw = list(string)
+ connection_limit = optional(number)
+ databases_ro = list(string)
10
+ databases_rw = list(string)
11
}))
12
}
0 commit comments