-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
384 lines (317 loc) · 11.9 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
variable "create" {
description = "Determines whether cluster resources will be created"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to assign to the resources created"
type = map(string)
default = {}
}
################################################################################
# Cluster
################################################################################
variable "broker_node_az_distribution" {
description = "The distribution of broker nodes across availability zones ([documentation](https://docs.aws.amazon.com/msk/1.0/apireference/clusters.html#clusters-model-brokerazdistribution)). Currently the only valid value is `DEFAULT`"
type = string
default = null
}
variable "broker_node_client_subnets" {
description = "A list of subnets to connect to in client VPC ([documentation](https://docs.aws.amazon.com/msk/1.0/apireference/clusters.html#clusters-prop-brokernodegroupinfo-clientsubnets))"
type = list(string)
default = []
}
variable "broker_node_connectivity_info" {
description = "Information about the cluster access configuration"
type = any
default = {}
}
variable "broker_node_instance_type" {
description = "Specify the instance type to use for the kafka brokers. e.g. kafka.m5.large. ([Pricing info](https://aws.amazon.com/msk/pricing/))"
type = string
default = null
}
variable "broker_node_security_groups" {
description = "A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster"
type = list(string)
default = []
}
variable "broker_node_storage_info" {
description = "A block that contains information about storage volumes attached to MSK broker nodes"
type = any
default = {}
}
variable "client_authentication" {
description = "Configuration block for specifying a client authentication"
type = any
default = {}
}
variable "name" {
description = "Name of the MSK cluster"
type = string
default = "msk" # to avoid: Error: cluster_name must be 1 characters or higher
}
variable "encryption_at_rest_kms_key_arn" {
description = "You may specify a KMS key short ID or ARN (it will always output an ARN) to use for encrypting your data at rest. If no key is specified, an AWS managed KMS ('aws/msk' managed service) key will be used for encrypting the data at rest"
type = string
default = null
}
variable "encryption_in_transit_client_broker" {
description = "Encryption setting for data in transit between clients and brokers. Valid values: `TLS`, `TLS_PLAINTEXT`, and `PLAINTEXT`. Default value is `TLS`"
type = string
default = null
}
variable "encryption_in_transit_in_cluster" {
description = "Whether data communication among broker nodes is encrypted. Default value: `true`"
type = bool
default = null
}
variable "enhanced_monitoring" {
description = "Specify the desired enhanced MSK CloudWatch monitoring level. See [Monitoring Amazon MSK with Amazon CloudWatch](https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html)"
type = string
default = null
}
variable "kafka_version" {
description = "Specify the desired Kafka software version"
type = string
default = null
}
variable "cloudwatch_logs_enabled" {
description = "Indicates whether you want to enable or disable streaming broker logs to Cloudwatch Logs"
type = bool
default = false
}
variable "cloudwatch_log_group_class" {
description = "Specifies the log class of the log group. Possible values are: STANDARD or INFREQUENT_ACCESS."
type = string
default = null
}
variable "firehose_logs_enabled" {
description = "Indicates whether you want to enable or disable streaming broker logs to Kinesis Data Firehose"
type = bool
default = false
}
variable "firehose_delivery_stream" {
description = "Name of the Kinesis Data Firehose delivery stream to deliver logs to"
type = string
default = null
}
variable "s3_logs_enabled" {
description = "Indicates whether you want to enable or disable streaming broker logs to S3"
type = bool
default = false
}
variable "s3_logs_bucket" {
description = "Name of the S3 bucket to deliver logs to"
type = string
default = null
}
variable "s3_logs_prefix" {
description = "Prefix to append to the folder name"
type = string
default = null
}
variable "number_of_broker_nodes" {
description = "The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets"
type = number
default = null
}
variable "jmx_exporter_enabled" {
description = "Indicates whether you want to enable or disable the JMX Exporter"
type = bool
default = false
}
variable "node_exporter_enabled" {
description = "Indicates whether you want to enable or disable the Node Exporter"
type = bool
default = false
}
variable "storage_mode" {
description = "Controls storage mode for supported storage tiers. Valid values are: `LOCAL` or `TIERED`"
type = string
default = null
}
variable "timeouts" {
description = "Create, update, and delete timeout configurations for the cluster"
type = map(string)
default = {}
}
################################################################################
# VPC Connection
################################################################################
variable "vpc_connections" {
description = "Map of VPC Connections to create"
type = any
default = {}
}
################################################################################
# Configuration
################################################################################
variable "create_configuration" {
description = "Determines whether to create a configuration"
type = bool
default = true
}
variable "configuration_arn" {
description = "ARN of an externally created configuration to use"
type = string
default = null
}
variable "configuration_revision" {
description = "Revision of the externally created configuration to use"
type = number
default = null
}
variable "configuration_name" {
description = "Name of the configuration"
type = string
default = null
}
variable "configuration_description" {
description = "Description of the configuration"
type = string
default = null
}
variable "configuration_server_properties" {
description = "Contents of the server.properties file. Supported properties are documented in the [MSK Developer Guide](https://docs.aws.amazon.com/msk/latest/developerguide/msk-configuration-properties.html)"
type = map(string)
default = {}
}
################################################################################
# Secret(s)
################################################################################
variable "create_scram_secret_association" {
description = "Determines whether to create SASL/SCRAM secret association"
type = bool
default = false
}
variable "scram_secret_association_secret_arn_list" {
description = "List of AWS Secrets Manager secret ARNs to associate with SCRAM"
type = list(string)
default = []
}
################################################################################
# Cluster Policy
################################################################################
variable "create_cluster_policy" {
description = "Determines whether to create an MSK cluster policy"
type = bool
default = false
}
variable "cluster_source_policy_documents" {
description = "Source policy documents for cluster policy"
type = list(string)
default = null
}
variable "cluster_override_policy_documents" {
description = "Override policy documents for cluster policy"
type = list(string)
default = null
}
variable "cluster_policy_statements" {
description = "Map of policy statements for cluster policy"
type = any
default = null
}
################################################################################
# CloudWatch Log Group
################################################################################
variable "create_cloudwatch_log_group" {
description = "Determines whether to create a CloudWatch log group"
type = bool
default = true
}
variable "cloudwatch_log_group_name" {
description = "Name of the Cloudwatch Log Group to deliver logs to"
type = string
default = null
}
variable "cloudwatch_log_group_retention_in_days" {
description = "Specifies the number of days you want to retain log events in the log group"
type = number
default = 0
}
variable "cloudwatch_log_group_kms_key_id" {
description = "The ARN of the KMS Key to use when encrypting log data"
type = string
default = null
}
################################################################################
# Storage Autoscaling
################################################################################
variable "enable_storage_autoscaling" {
description = "Determines whether autoscaling is enabled for storage"
type = bool
default = true
}
variable "scaling_max_capacity" {
description = "Max storage capacity for Kafka broker autoscaling"
type = number
default = 250
}
variable "scaling_role_arn" {
description = "The ARN of the IAM role that allows Application AutoScaling to modify your scalable target on your behalf. This defaults to an IAM Service-Linked Role"
type = string
default = null
}
variable "scaling_target_value" {
description = "The Kafka broker storage utilization at which scaling is initiated"
type = number
default = 70
}
################################################################################
# Glue Schema Registry & Schema
################################################################################
variable "create_schema_registry" {
description = "Determines whether to create a Glue schema registry for managing Avro schemas for the cluster"
type = bool
default = true
}
variable "schema_registries" {
description = "A map of schema registries to be created"
type = map(any)
default = {}
}
variable "schemas" {
description = "A map schemas to be created within the schema registry"
type = map(any)
default = {}
}
################################################################################
# Connect Custom Plugin
################################################################################
variable "connect_custom_plugins" {
description = "Map of custom plugin configuration details (map of maps)"
type = any
default = {}
}
variable "connect_custom_plugin_timeouts" {
description = "Timeout configurations for the connect custom plugins"
type = map(string)
default = {
create = null
}
}
################################################################################
# Connect Worker Configuration
################################################################################
variable "create_connect_worker_configuration" {
description = "Determines whether to create connect worker configuration"
type = bool
default = false
}
variable "connect_worker_config_name" {
description = "The name of the worker configuration"
type = string
default = null
}
variable "connect_worker_config_description" {
description = "A summary description of the worker configuration"
type = string
default = null
}
variable "connect_worker_config_properties_file_content" {
description = "Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format"
type = string
default = null
}