-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
72 lines (63 loc) · 1.67 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
variable "name" {
description = "The name of the database"
type = string
nullable = false
validation {
condition = 1 <= length(var.name) && length(var.name) <= 64
error_message = "The database name contains 1 to 64 characters."
}
}
variable "encoding" {
description = "Character set encoding to use in the database"
type = string
default = "UTF8"
}
variable "connection_limit" {
description = "How many concurrent connections can be established to this database"
type = number
default = -1
}
variable "allow_connections" {
description = "If `false` then no one can connect to this database"
type = bool
default = true
}
variable "lc_collate" {
description = "Collation order `LC_COLLATE` to use in the database"
type = string
default = "C"
}
variable "lc_ctype" {
description = "Character classification `LC_CTYPE` to use in the database"
type = string
default = "C"
}
variable "role" {
description = "The name of the role, default - name of database"
type = string
default = null
}
variable "make_owner" {
description = "Set role as an owner of database"
type = bool
default = false
}
variable "password" {
description = "Owner role's password parameters"
type = object({
length = optional(number, 20)
special = optional(bool, false)
min_numeric = optional(number, 2)
min_lower = optional(number, 2)
})
default = {}
}
variable "privileges" {
description = "The list of privileges to grant role for the database"
type = list(string)
default = [
"CONNECT",
"CREATE",
"TEMPORARY",
]
}