-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
249 lines (212 loc) · 6.47 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
variable "create" {
type = bool
default = true
description = "Create the resource?"
}
variable "cluster_size" {
type = number
default = 3
description = "Number of instances."
}
variable "instance_class" {
type = string
description = "The instance class to use."
default = null
}
variable "create_db_subnet_group" {
type = bool
default = false
description = "Create the resource?"
}
variable "create_db" {
type = bool
default = true
description = "Create the resource?"
}
variable "password" {
description = "Password for the master DB user."
type = string
default = null
}
variable "create_db_parameter_group" {
type = bool
default = false
description = "Create the resource?"
}
variable "create_db_password" {
type = bool
default = false
description = "Create the resource?"
}
variable "random_password_length" {
type = number
default = 16
description = "The length of the string desired."
}
variable "db_subnet_group_name" {
type = string
default = ""
description = "The DB subnet group to associate with this DB instance."
}
variable "subnet_ids" {
type = list(string)
default = []
description = "A list of VPC subnet IDs."
}
variable "db_parameter_group_name" {
type = string
default = ""
description = "A cluster parameter group name."
}
variable "apply_immediately" {
type = bool
default = false
description = " Specifies whether any database modifications are applied immediately, or during the next maintenance window. "
}
variable "availability_zones" {
type = list(string)
default = null
description = "A list of EC2 Availability Zones that instances in the DB cluster can be created in."
}
variable "backup_retention_period" {
type = number
default = 7
description = "The days to retain backups for."
}
variable "cluster_identifier" {
type = string
description = "The cluster identifier. If omitted, Terraform will assign a random, unique identifier."
}
variable "db_cluster_parameter_group_name" {
type = string
default = null
description = " A cluster parameter group to associate with the cluster."
}
variable "deletion_protection" {
type = bool
default = false
description = "A value that indicates whether the DB cluster has deletion protection enabled."
}
variable "enabled_cloudwatch_logs_exports" {
type = list(string)
default = ["audit", "profiler"]
description = "List of log types to export to cloudwatch. If omitted, no logs will be exported. The following log types are supported: audit, profiler."
}
variable "engine_version" {
type = string
description = "The database engine version. Updating this argument results in an outage."
}
variable "engine" {
type = string
default = "docdb"
description = "The name of the database engine to be used for this DB cluster."
}
variable "master_password" {
type = string
default = null
sensitive = true
description = "Password for the master DB user."
}
variable "master_username" {
type = string
description = "Username for the master DB user."
}
variable "preferred_backup_window" {
type = string
default = "03:00-05:00"
description = "The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter."
}
variable "preferred_maintenance_window" {
type = string
default = "sat:05:00-sat:08:00"
description = "The weekly time range during which system maintenance can occur, in (UTC)."
}
variable "storage_encrypted" {
type = bool
default = true
description = "Specifies whether the DB cluster is encrypted."
}
variable "vpc_security_group_ids" {
type = list(string)
description = "List of VPC security groups to associate with the Cluster."
}
variable "port" {
type = number
default = 27017
description = "The port on which the DB accepts connections."
}
variable "final_snapshot_identifier" {
type = string
default = null
description = "The name of your final DB snapshot when this DB cluster is deleted. If omitted, no final snapshot will be made."
}
variable "snapshot_identifier" {
type = string
default = null
description = "Specifies whether or not to create this cluster from a snapshot."
}
variable "skip_final_snapshot" {
type = bool
default = true
description = "Determines whether a final DB snapshot is created before the DB cluster is deleted."
}
variable "kms_key_id" {
type = string
default = null
description = "The ARN for the KMS encryption key."
}
variable "auto_minor_version_upgrade" {
type = bool
default = false
description = "This parameter does not apply to Amazon DocumentDB.Amazon DocumentDB does not perform minor version upgrades regardless of the value set."
}
variable "enable_performance_insights" {
type = bool
default = true
description = "A value that indicates whether to enable Performance Insights for the DB Instance."
}
variable "identifier_prefix" {
type = string
default = null
description = "Creates a unique identifier beginning with the specified prefix."
}
variable "promotion_tier" {
type = number
default = 0
description = "Failover Priority setting on instance level. "
}
variable "performance_insights_kms_key_id" {
type = string
default = null
description = "The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key."
}
variable "family" {
type = string
default = "docdb4.0"
description = "The family of the documentDB cluster parameter group."
}
variable "sg_name_prefix" {
type = string
default = null
description = "Creates a unique name beginning with the specified prefix."
}
variable "subnet_description" {
type = string
default = null
description = "Allowed subnets for DB cluster instances."
}
variable "parameter_description" {
type = string
default = "Parameter group for"
description = "Description for the parameter group."
}
variable "parameters" {
type = list(map(string))
default = []
description = "List of DB parameters to apply."
}
variable "tags" {
type = map(string)
default = {}
description = "A map of tags to add to all resources"
}