-
Notifications
You must be signed in to change notification settings - Fork 48
/
variables.tf
267 lines (222 loc) · 6.69 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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
variable "name" {
type = string
description = "Name given to DB subnet group"
}
variable "subnets" {
type = list(string)
description = "List of subnet IDs to use"
}
variable "envname" {
type = string
description = "Environment name (eg,test, stage or prod)"
}
variable "envtype" {
type = string
description = "Environment type (eg,prod or nonprod)"
}
variable "identifier_prefix" {
type = string
default = ""
description = "Prefix for cluster and instance identifier"
}
variable "azs" {
type = list(string)
description = "List of AZs to use"
}
variable "replica_count" {
type = string
default = "0"
description = "Number of reader nodes to create. If `replica_scale_enable` is `true`, the value of `replica_scale_min` is used instead."
}
variable "security_groups" {
type = list(string)
description = "VPC Security Group IDs"
}
variable "instance_type" {
type = string
default = "db.t2.small"
description = "Instance type to use"
}
variable "publicly_accessible" {
type = string
default = "false"
description = "Whether the DB should have a public IP address"
}
variable "username" {
default = "root"
description = "Master DB username"
}
variable "password" {
type = string
description = "Master DB password"
}
variable "final_snapshot_identifier" {
type = string
default = "final"
description = "The name to use when creating a final snapshot on cluster destroy, appends a random 8 digits to name to ensure it's unique too."
}
variable "skip_final_snapshot" {
type = string
default = "false"
description = "Should a final snapshot be created on cluster destroy"
}
variable "backup_retention_period" {
type = string
default = "7"
description = "How long to keep backups for (in days)"
}
variable "preferred_backup_window" {
type = string
default = "02:00-03:00"
description = "When to perform DB backups"
}
variable "preferred_maintenance_window" {
type = string
default = "sun:05:00-sun:06:00"
description = "When to perform DB maintenance"
}
variable "port" {
type = string
default = "3306"
description = "The port on which to accept connections"
}
variable "apply_immediately" {
type = string
default = "false"
description = "Determines whether or not any DB modifications are applied immediately, or during the maintenance window"
}
variable "monitoring_interval" {
type = string
default = 0
description = "The interval (seconds) between points when Enhanced Monitoring metrics are collected"
}
variable "auto_minor_version_upgrade" {
type = string
default = "true"
description = "Determines whether minor engine upgrades will be performed automatically in the maintenance window"
}
variable "db_parameter_group_name" {
type = string
default = "default.aurora5.6"
description = "The name of a DB parameter group to use"
}
variable "db_cluster_parameter_group_name" {
type = string
default = "default.aurora5.6"
description = "The name of a DB Cluster parameter group to use"
}
variable "snapshot_identifier" {
type = string
default = ""
description = "DB snapshot to create this database from"
}
variable "storage_encrypted" {
type = string
default = "true"
description = "Specifies whether the underlying storage layer should be encrypted"
}
variable "kms_key_id" {
type = string
default = ""
description = "Specify the KMS Key to use for encryption"
}
variable "cw_alarms" {
type = string
default = false
description = "Whether to enable CloudWatch alarms - requires `cw_sns_topic` is specified"
}
variable "cw_sns_topic" {
type = string
default = "false"
description = "An SNS topic to publish CloudWatch alarms to"
}
variable "cw_max_conns" {
type = string
default = "500"
description = "Connection count beyond which to trigger a CloudWatch alarm"
}
variable "cw_max_cpu" {
type = string
default = "85"
description = "CPU threshold above which to alarm"
}
variable "cw_max_replica_lag" {
type = string
default = "2000"
description = "Maximum Aurora replica lag in milliseconds above which to alarm"
}
variable "cw_eval_period_connections" {
type = string
default = "1"
description = "Evaluation period for the DB connections alarms"
}
variable "cw_eval_period_cpu" {
type = string
default = "2"
description = "Evaluation period for the DB CPU alarms"
}
variable "cw_eval_period_replica_lag" {
type = string
default = "5"
description = "Evaluation period for the DB replica lag alarm"
}
variable "engine" {
type = string
default = "aurora"
description = "Aurora database engine type, currently aurora, aurora-mysql or aurora-postgresql"
}
variable "engine-version" {
type = string
default = "5.6.10a"
description = "Aurora database engine version."
}
variable "replica_scale_enabled" {
type = string
default = false
description = "Whether to enable autoscaling for RDS Aurora (MySQL) read replicas"
}
variable "replica_scale_max" {
type = string
default = "0"
description = "Maximum number of replicas to allow scaling for"
}
variable "replica_scale_min" {
type = string
default = "2"
description = "Maximum number of replicas to allow scaling for"
}
variable "replica_scale_cpu" {
type = string
default = "70"
description = "CPU usage to trigger autoscaling at"
}
variable "replica_scale_in_cooldown" {
type = string
default = "300"
description = "Cooldown in seconds before allowing further scaling operations after a scale in"
}
variable "replica_scale_out_cooldown" {
type = string
default = "300"
description = "Cooldown in seconds before allowing further scaling operations after a scale out"
}
variable "performance_insights_enabled" {
type = string
default = false
description = "Whether to enable Performance Insights"
}
variable "iam_database_authentication_enabled" {
type = string
default = false
description = "Whether to enable IAM database authentication for the RDS Cluster"
}
variable "enabled" {
type = string
default = true
description = "Whether the database resources should be created"
}
variable "enabled_cloudwatch_logs_exports" {
type = list(string)
default = []
description = "List of log types to export to CloudWatch Logs. If omitted, no logs will be exported. The following log types are supported: audit, error, general, slowquery, postgresql."
}