-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
426 lines (358 loc) · 11.7 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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
variable "allow_major_version_upgrade" {
description = "(Optional) Specifies whether upgrades between different major versions are allowed. You must set it to true when providing an engine_version parameter that uses a different major version than the DB cluster's current version."
type = bool
default = false
}
variable "apply_immediately" {
description = "Specifies whether cluster modifications are applied immediately"
type = bool
default = true
}
variable "availability_zones" {
description = "(Optional) A list of EC2 Availability Zones that instances in the Neptune cluster can be created in."
type = list(string)
default = null
}
variable "backup_retention_period" {
description = "The number of days to retain backups for"
type = number
default = 7
}
variable "cluster_identifier" {
description = "The cluster identifier. Required if create_neptune_cluster is true."
type = string
default = null
}
variable "cluster_identifier_prefix" {
description = "(Optional) Creates a unique cluster identifier beginning with the specified prefix. Conflicts with cluster_identifier."
type = string
default = null
}
variable "copy_tags_to_snapshot" {
description = "(Optional) If set to true, tags are copied to any snapshot of the DB cluster that is created."
type = bool
default = null
}
variable "create_neptune_cluster" {
description = "Whether or not to create a Neptune cluster"
type = bool
default = true
}
variable "create_neptune_cluster_endpoint" {
description = "Whether or not to create Neptune cluster endpoints."
type = bool
default = false
}
variable "create_neptune_parameter_group" {
description = "Whether or not to create a Neptune DB parameter group"
type = bool
default = true
}
variable "create_neptune_cluster_parameter_group" {
description = "Whether or not to create a Neptune cluster parameter group"
type = bool
default = true
}
variable "create_neptune_cluster_snapshot" {
description = "Whether or not to create a Neptune cluster snapshot"
type = bool
default = true
}
variable "create_neptune_global_cluster" {
description = "Whether or not to create a Neptune global cluster"
type = bool
default = false
}
variable "create_neptune_iam_role" {
description = "Whether or not to create and attach a Neptune IAM role"
type = bool
default = true
}
variable "create_neptune_instance" {
description = "Whether or not to create Neptune instances"
type = bool
default = true
}
variable "create_neptune_security_group" {
description = "Whether or not to create a Neptune security group"
type = bool
default = true
}
variable "create_neptune_subnet_group" {
description = "Whether or not to create a Neptune subnet group"
type = bool
default = true
}
variable "create_timeout" {
description = "Timeout for creating the Neptune cluster snapshot"
type = string
default = "20m"
}
variable "db_cluster_identifier" {
description = "The DB Cluster Identifier from which to take the snapshot"
type = string
default = null
}
variable "db_cluster_snapshot_identifier" {
description = "The Identifier for the snapshot"
type = string
default = null
}
variable "deletion_protection" {
type = bool
description = "(Optional) A value that indicates whether the DB cluster has deletion protection enabled"
default = false
}
variable "enable_cloudwatch_logs_exports" {
type = list(string)
description = "(Optional) A list of the log types this DB cluster is configured to export to Cloudwatch Logs. Currently only supports `audit` and `slowquery`."
default = null
}
variable "enable_serverless" {
description = "Whether or not to create a Serverless Neptune cluster"
type = bool
default = true
}
variable "engine_version" {
description = "The database engine version"
type = string
default = "1.2.0.1"
}
variable "event_subscriptions" {
description = <<-EOT
Map of Neptune event subscriptions with names and SNS topic ARNs
Example:
{
"subscription1" = "arn:aws:sns:us-east-1:123456789012:topic1",
"subscription2" = "arn:aws:sns:us-east-1:123456789012:topic2"
}
EOT
type = map(string)
default = null
}
variable "final_snapshot_identifier" {
description = "(Optional) The name of your final Neptune snapshot when this Neptune cluster is deleted. If omitted, no final snapshot will be made."
type = string
default = null
}
variable "global_cluster_engine" {
description = "(Optional) Name of the database engine to be used for the global cluster. Valid values: neptune."
type = string
default = null
}
variable "global_cluster_engine_version" {
description = "(Optional) Engine version of the global database. Must be compatible with Neptune global cluster versions."
type = string
default = null
}
variable "global_cluster_identifier" {
description = "(Optional) The global cluster identifier specified on aws_neptune_global_cluster."
type = string
default = null
}
variable "global_cluster_source_db_cluster_identifier" {
description = "(Optional) Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. Terraform cannot perform drift detection of this value."
type = string
default = null
}
variable "global_cluster_deletion_protection" {
description = "(Optional) Whether or not the global cluster should have deletion protection enabled. Default: false."
type = bool
default = false
}
variable "global_cluster_storage_encrypted" {
description = "(Optional) Specifies whether the global cluster is encrypted. The default is false unless the source DB cluster is encrypted."
type = bool
default = null
}
variable "iam_database_authentication_enabled" {
description = "Specifies whether IAM database authentication is enabled"
type = bool
default = true
}
variable "iam_roles" {
description = "(Optional) A List of ARNs for the IAM roles to associate to the Neptune Cluster"
type = list(string)
default = null
}
variable "instance_class" {
description = "The instance class to use for the Neptune instances (e.g., db.r5.large, db.serverless)."
type = string
default = "db.serverless"
}
variable "kms_key_arn" {
description = "(Optional) The ARN for the KMS encryption key. When specifying kms_key_arn, storage_encrypted needs to be set to true."
type = string
default = null
}
variable "max_capacity" {
description = "The maximum Neptune Capacity Units (NCUs) for the cluster"
type = number
default = 128
}
variable "min_capacity" {
description = "The minimum Neptune Capacity Units (NCUs) for the cluster"
type = number
default = 2.5
}
variable "neptune_cluster_endpoints" {
description = "A map of Neptune cluster endpoints to create."
type = map(object({
endpoint_type = string
static_members = list(string)
excluded_members = list(string)
tags = map(string)
}))
default = {}
}
variable "neptune_cluster_instance_tags" {
description = "Tags for the Neptune cluster instances"
type = map(string)
default = {}
}
variable "neptune_cluster_parameters" {
description = "A map of Neptune cluster parameter settings"
type = map(object({
key = string
value = string
}))
default = {
parameter1 = {
key = "neptune_enable_audit_log"
value = "1"
}
}
}
variable "neptune_cluster_parameter_group_tags" {
description = "Tags for the Neptune cluster parameter group"
type = map(string)
default = {}
}
variable "neptune_db_parameters" {
description = "A map of Neptune DB parameter settings"
type = map(object({
key = string
value = string
}))
default = {
parameter1 = {
key = "neptune_query_timeout"
value = "25"
}
}
}
variable "neptune_event_subscription_tags" {
description = "Tags for the Neptune event subscription"
type = map(string)
default = {}
}
variable "neptune_family" {
description = "The family of the neptune cluster and parameter group."
type = string
default = "neptune1.2"
}
variable "neptune_parameter_group_tags" {
description = "Tags for the Neptune parameter group"
type = map(string)
default = {}
}
variable "neptune_port" {
description = "Network port for the Neptune DB Cluster"
type = number
default = 8182
}
variable "neptune_role_name" {
description = "Name for the Neptune IAM role"
type = string
default = "iam-role-neptune"
}
variable "neptune_role_description" {
description = "Description for the Neptune IAM role"
type = string
default = null
}
variable "neptune_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the Neptune IAM role"
type = string
default = null
}
variable "neptune_security_group_tags" {
description = "Tags for the Neptune security group"
type = map(string)
default = {}
}
variable "neptune_subnet_cidrs" {
description = "A list of subnet CIDRs where the Neptune cluster is situated"
type = list(string)
default = ["10.0.0.0/8"]
}
variable "neptune_subnet_group_tags" {
description = "Tags for the Neptune subnet group"
type = map(string)
default = {}
}
variable "preferred_backup_window" {
description = "The daily time range during which automated backups are created"
type = string
default = "07:00-09:00"
}
variable "preferred_maintenance_window" {
description = "(Optional) The weekly time range during which system maintenance can occur, in UTC, e.g., 'wed:04:00-wed:04:30'."
type = string
default = null
}
variable "port" {
description = "(Optional) The port on which the Neptune accepts connections."
type = number
default = 8182
}
variable "read_replica_count" {
description = "Number of read replicas to create."
type = number
default = 0
}
variable "replication_source_identifier" {
description = "(Optional) ARN of a source Neptune cluster or Neptune instance if this Neptune cluster is to be created as a Read Replica."
type = string
default = null
}
variable "skip_final_snapshot" {
description = "Determines whether a final Neptune snapshot is created before deletion"
type = bool
default = true
}
variable "snapshot_identifier" {
description = "(Optional) Specifies whether or not to create this cluster from a snapshot."
type = string
default = null
}
variable "storage_encrypted" {
description = "(Optional) Specifies whether the Neptune cluster is encrypted."
type = bool
default = true
}
variable "storage_type" {
description = "(Optional) Storage type associated with the cluster (standard or iopt1). Default: standard"
type = string
default = "standard"
}
variable "subnet_ids" {
description = "A list of subnet IDs to associate with the Neptune cluster"
type = list(string)
default = null
}
variable "tags" {
description = "A map of tags to assign to the Neptune cluster"
type = map(string)
default = {}
}
variable "vpc_id" {
description = "The VPC ID for the Neptune cluster and security group"
type = string
default = null
}
variable "vpc_security_group_ids" {
description = "(Optional) List of VPC security groups to associate with the Cluster"
type = list(string)
default = null
}