generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathvariables.tf
283 lines (235 loc) · 8.6 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
variable "create" {
description = "Determines whether resources will be created - affects all resources"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to use on all resources"
type = map(string)
default = {}
}
################################################################################
# Cluster
################################################################################
variable "name" {
description = "Cluster name - also default name used on all resources if more specific resource names are not provided"
type = string
default = ""
}
variable "use_name_prefix" {
description = "Determines whether `name` is used as a prefix for the cluster"
type = bool
default = false
}
variable "description" {
description = "Description for the cluster. Defaults to `Managed by Terraform`"
type = string
default = null
}
variable "engine" {
description = "The engine that will run on your nodes. Supported values are redis and valkey"
type = string
default = null
}
variable "engine_version" {
description = "Version number of the engine to be used for the cluster. Downgrades are not supported"
type = string
default = null
}
variable "auto_minor_version_upgrade" {
description = "When set to `true`, the cluster will automatically receive minor engine version upgrades after launch. Defaults to `true`"
type = bool
default = null
}
variable "port" {
description = "The port number on which each of the nodes accepts connections. Defaults to `6379`"
type = number
default = null
}
variable "node_type" {
description = "The compute and memory capacity of the nodes in the cluster. See AWS documentation on [supported node types](https://docs.aws.amazon.com/memorydb/latest/devguide/nodes.supportedtypes.html) as well as [vertical scaling](https://docs.aws.amazon.com/memorydb/latest/devguide/cluster-vertical-scaling.html)"
type = string
default = null
}
variable "num_shards" {
description = "The number of shards in the cluster. Defaults to `1`"
type = number
default = null
}
variable "num_replicas_per_shard" {
description = "The number of replicas to apply to each shard, up to a maximum of 5. Defaults to `1` (i.e. 2 nodes per shard)"
type = number
default = null
}
variable "kms_key_arn" {
description = "ARN of the KMS key used to encrypt the cluster at rest"
type = string
default = null
}
variable "tls_enabled" {
description = "A flag to enable in-transit encryption on the cluster. When set to `false`, the `acl_name` must be `open-access`. Defaults to `true`"
type = bool
default = null
}
variable "security_group_ids" {
description = "Set of VPC Security Group ID-s to associate with this cluster"
type = list(string)
default = null
}
variable "maintenance_window" {
description = "Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format `ddd:hh24:mi-ddd:hh24:mi`"
type = string
default = null
}
variable "sns_topic_arn" {
description = "ARN of the SNS topic to which cluster notifications are sent"
type = string
default = null
}
variable "snapshot_name" {
description = "The name of a snapshot from which to restore data into the new cluster"
type = string
default = null
}
variable "snapshot_arns" {
description = " List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster"
type = list(string)
default = null
}
variable "snapshot_retention_limit" {
description = "The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to `0`, automatic backups are disabled. Defaults to `0`"
type = number
default = null
}
variable "snapshot_window" {
description = "The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: `05:00-09:00`"
type = string
default = null
}
variable "final_snapshot_name" {
description = "Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made"
type = string
default = null
}
variable "data_tiering" {
description = "Must be set to `true` when using a data tiering node type"
type = bool
default = null
}
variable "multi_region_cluster_name" {
description = "The multi region cluster identifier if part of a multi region cluster"
type = string
default = null
}
################################################################################
# User(s)
################################################################################
variable "create_users" {
description = "Determines whether to create users specified"
type = bool
default = true
}
variable "users" {
description = "A map of user definitions (maps) to be created"
type = any
default = {}
}
################################################################################
# ACL
################################################################################
variable "create_acl" {
description = "Determines whether to create ACL specified"
type = bool
default = true
}
variable "acl_name" {
description = "Name of ACL to be created if `create_acl` is `true`, otherwise its the name of an existing ACL to use if `create_acl` is `false`"
type = string
default = null
}
variable "acl_use_name_prefix" {
description = "Determines whether `acl_name` is used as a prefix"
type = bool
default = false
}
variable "acl_user_names" {
description = "List of externally created user names to associate with the ACL"
type = list(string)
default = []
}
variable "acl_tags" {
description = "Additional tags for the ACL created"
type = map(string)
default = {}
}
################################################################################
# Parameter Group
################################################################################
variable "create_parameter_group" {
description = "Determines whether to create parameter group specified"
type = bool
default = true
}
variable "parameter_group_name" {
description = "Name of parameter group to be created if `create_parameter_group` is `true`, otherwise its the name of an existing parameter group to use if `create_parameter_group` is `false`"
type = string
default = null
}
variable "parameter_group_use_name_prefix" {
description = "Determines whether `parameter_group_name` is used as a prefix"
type = bool
default = false
}
variable "parameter_group_description" {
description = "Description for the parameter group. Defaults to `Managed by Terraform`"
type = string
default = null
}
variable "parameter_group_family" {
description = "The engine version that the parameter group can be used with"
type = string
default = null
}
variable "parameter_group_parameters" {
description = "A list of parameter maps to apply"
type = list(map(string))
default = []
}
variable "parameter_group_tags" {
description = "Additional tags for the parameter group created"
type = map(string)
default = {}
}
################################################################################
# Subnet Group
################################################################################
variable "create_subnet_group" {
description = "Determines whether to create subnet group specified"
type = bool
default = true
}
variable "subnet_group_name" {
description = "Name of subnet group to be created if `create_subnet_group` is `true`, otherwise its the name of an existing subnet group to use if `create_subnet_group` is `false`"
type = string
default = null
}
variable "subnet_group_use_name_prefix" {
description = "Determines whether `subnet_group_name` is used as a prefix"
type = bool
default = false
}
variable "subnet_group_description" {
description = "Description for the subnet group. Defaults to `Managed by Terraform`"
type = string
default = null
}
variable "subnet_ids" {
description = "Set of VPC Subnet ID-s for the subnet group. At least one subnet must be provided"
type = list(string)
default = []
}
variable "subnet_group_tags" {
description = "Additional tags for the subnet group created"
type = map(string)
default = {}
}