-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
75 lines (63 loc) · 2.07 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
73
74
75
variable "database" {
type = string
description = "Name of the database for granting schema access"
}
variable "data_retention_days" {
type = number
default = 30
description = "value for data retention days"
}
variable "is_transient" {
type = bool
default = false
description = "value for is_transient"
}
variable "comment" {
type = string
description = "value for comment"
default = ""
}
variable "is_managed" {
type = bool
default = false
description = "value for is_managed"
}
variable "schema_name" {
type = string
description = "Name of the schema"
}
variable "privilege" {
type = string
description = "Privilege for the schema grant"
default = "USAGE"
}
variable "roles" {
type = list(string)
description = "List of roles to grant access to schema_name"
default = [""]
}
variable "shares" {
type = list(string)
description = "Grant privilege to shares (only valid if on_future and on_all are unset 'DEFAULT')"
default = [""]
}
variable "on_all" {
type = bool
description = "When this is set to true, apply this grant on all schemas in the given database. The schema_name and shares fields must be unset in order to use on_all. Cannot be used together with on_future."
default = false
}
variable "on_future" {
type = bool
description = "(Boolean) When this is set to true, apply this grant on all future schemas in the given database. The schema_name and shares fields must be unset in order to use on_future. Cannot be used together with on_all."
default = false
}
variable "enable_multiple_grants" {
type = bool
description = "When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform."
default = true
}
variable "with_grant_option" {
type = bool
description = "(Boolean) When this is set to true, allows the recipient role to grant the privileges to other roles."
default = false
}