forked from schubergphilis/terraform-aws-mcaf-aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
253 lines (213 loc) · 6.63 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
250
251
252
253
variable "apply_immediately" {
type = bool
default = true
description = "Specifies whether any cluster modifications are applied immediately"
}
variable "auto_pause" {
type = bool
default = true
description = "Whether to enable automatic pause"
}
variable "availability_zones" {
type = list(string)
default = []
description = "List of availability zones to deploy Aurora in"
}
variable "backup_retention_period" {
type = number
default = 7
description = "The days to retain backups for"
}
variable "cidr_blocks" {
type = list(string)
default = null
description = "List of CIDR blocks that should be allowed access to the Aurora cluster"
}
variable "cluster_family" {
type = string
default = "aurora-mysql5.7"
description = "The family of the DB cluster parameter group"
}
variable "cluster_parameters" {
type = list(object({
apply_method = optional(string, "immediate")
name = string
value = string
}))
default = [{
name = "character_set_server",
value = "utf8",
}, {
name = "character_set_client",
value = "utf8",
}]
description = "A list of cluster DB parameters to apply"
}
variable "database" {
type = string
default = null
description = "The name of the first database to be created when the cluster is created"
}
variable "database_parameters" {
type = list(object({
apply_method = optional(string, "immediate")
name = string
value = string
}))
default = null
description = "A list of instance DB parameters to apply"
}
variable "deletion_protection" {
type = bool
default = true
description = "A boolean indicating if the DB instance should have deletion protection enable"
}
variable "enabled_cloudwatch_logs_exports" {
type = list(string)
default = null
description = "List of log types to export to cloudwatch"
}
variable "enable_http_endpoint" {
type = bool
default = false
description = "Enable Aurora Serverless HTTP endpoint (Data API)"
}
variable "engine" {
type = string
default = "aurora-mysql"
description = "The engine type of the Aurora cluster"
}
variable "engine_mode" {
type = string
default = "serverless"
description = "The engine mode of the Aurora cluster"
validation {
condition = contains(["provisioned", "serverless", "parallelquery", "global", "multimaster", "serverlessv2"], var.engine_mode)
error_message = "Allowed values for engine_mode are \"provisioned\", \"serverless\", \"parallelquery\", \"global\", \"multimaster\" or \"serverlessv2\"."
}
}
variable "engine_version" {
type = string
default = "5.7.mysql_aurora.2.08.3"
description = "The engine version of the Aurora cluster"
}
variable "final_snapshot_identifier" {
type = string
default = null
description = "Identifier of the final snapshot to create before deleting the cluster"
}
variable "iam_database_authentication_enabled" {
type = bool
default = null
description = "Specify if mapping AWS IAM accounts to database accounts is enabled."
}
variable "iam_roles" {
type = list(string)
default = null
description = "A list of IAM Role ARNs to associate with the cluster"
}
variable "instance_class" {
type = string
default = "db.r5.large"
description = "The class of RDS instances to attach. Only for serverless engine_mode"
}
variable "instance_count" {
type = number
default = 1
description = "The number of RDS instances to attach. Only for serverless engine_mode"
}
variable "kms_key_id" {
type = string
default = null
description = "The KMS key ID used for the storage encryption"
}
variable "max_capacity" {
type = string
default = 8
description = "The maximum capacity of the serverless cluster"
}
variable "min_capacity" {
type = string
default = 1
description = "The minimum capacity of the serverless cluster"
}
variable "monitoring_interval" {
type = string
default = null
description = "The interval (seconds) for collecting enhanced monitoring metrics"
}
variable "password" {
type = string
description = "Password for the master DB user"
}
variable "performance_insights" {
type = bool
default = false
description = "Specifies whether Performance Insights is enabled or not"
}
variable "performance_insights_retention_period" {
type = number
default = 7
description = "Amount of time in days to retain Performance Insights data. Valida values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights needs to be set to true"
}
variable "permissions_boundary" {
type = string
default = null
description = "The ARN of the policy that is used to set the permissions boundary for the role"
}
variable "preferred_backup_window" {
type = string
default = null
description = "The daily time range during which automated backups are created, in UTC e.g. 04:00-09:00"
}
variable "preferred_maintenance_window" {
type = string
default = null
description = "The weekly time range during which system maintenance can occur, in UTC e.g. wed:04:00-wed:04:30"
}
variable "publicly_accessible" {
type = string
default = false
description = "Control if instances in cluster are publicly accessible"
}
variable "security_group_ids" {
type = list(string)
default = []
description = "List of security group IDs allowed to connect to Aurora"
}
variable "skip_final_snapshot" {
type = bool
default = false
description = "Determines whether a final snapshot is created before deleting the cluster"
}
variable "snapshot_identifier" {
type = string
default = null
description = "Database snapshot identifier to create the database from"
}
variable "stack" {
type = string
description = "The stack name for the Aurora Cluster"
}
variable "storage_encrypted" {
type = bool
default = true
description = "Specifies whether the DB cluster is encrypted"
}
variable "subnet_ids" {
type = list(string)
description = "List of subnet IDs to deploy Aurora in"
}
variable "tags" {
type = map(string)
description = "A mapping of tags to assign to the bucket"
}
variable "timeout_action" {
type = string
default = "RollbackCapacityChange"
description = "The action to take when the timeout is reached"
}
variable "username" {
type = string
description = "Username for the master DB user"
}