-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
94 lines (79 loc) · 2.16 KB
/
variables.tf
File metadata and controls
94 lines (79 loc) · 2.16 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
variable "admin_login_secret_arn" {
type = string
description = "ARN of a SecretsManager secret containing admin login"
default = null
}
variable "replica_regions" {
description = "List of regions to replicate the secret to"
type = list(object({
region = string
kms_key_id = optional(string)
}))
default = []
}
variable "admin_login_kms_key_id" {
type = string
description = "ARN of the KMS key used to encrypt the admin login"
}
variable "admin_principals" {
description = "Principals allowed to peform admin actions (default: current account)"
type = list(string)
default = null
}
variable "alternate_username" {
description = "Username for the alternate login used during rotation"
type = string
default = null
}
variable "database" {
description = "The database instance for which a login will be managed"
type = object({
address = string
arn = string
db_name = string
engine = string
identifier = string
port = number
})
}
variable "grants" {
description = "List of GRANT statements for this user"
type = list(string)
}
variable "read_principals" {
description = "Principals allowed to read the secret (default: current account)"
type = list(string)
default = null
}
variable "replica" {
description = "Whether the login is for a replica instance"
type = bool
default = false
}
variable "secret_name" {
description = "Override the name for this secret"
type = string
default = null
}
variable "subnet_ids" {
description = "Subnets in which the rotation function should run"
type = list(string)
}
variable "tags" {
description = "Tags to be applied to created resources"
type = map(string)
default = {}
}
variable "trust_tags" {
description = "Tags required on principals accessing the secret"
type = map(string)
default = {}
}
variable "username" {
description = "The username for which a login will be managed"
type = string
}
variable "vpc_id" {
description = "VPC in which the rotation function should run"
type = string
}