-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
115 lines (96 loc) · 3.49 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
variable "aws-profile" {
description = "AWS profile for provisioning the resources"
type = string
}
variable "aws_region" {
description = "AWS Region- Defaulted to us-east-1"
default = "us-east-1"
type = string
}
variable "environment" {
description = "Environment"
type = string
default = "dev"
}
# MSK Platform variables
variable "platform_topic" {
description = "Topics to subscribe to"
type = list(any)
default = ["test"]
}
# Vars
variable "cluster_name" {
description = "Name of the MSK cluster."
type = string
default = "data-platform"
}
variable "kafka_version" {
description = "Specify the desired Kafka software version."
type = string
default = "2.8.1"
}
variable "number_of_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 = 3
}
variable "volume_size" {
description = "The size in GiB of the EBS volume for the data drive on each broker node."
type = number
default = 100
}
variable "instance_type" {
description = "Specify the instance type to use for the kafka brokers. e.g. kafka.m5.large."
type = string
default = "kafka.t3.small"
}
variable "extra_security_groups" {
description = "A list of extra security groups to associate with the elastic network interfaces to control who can communicate with the cluster."
type = list(string)
default = []
}
variable "enhanced_monitoring" {
description = "Specify the desired enhanced MSK CloudWatch monitoring level to one of three monitoring levels: DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER or PER_TOPIC_PER_PARTITION. See [Monitoring Amazon MSK with Amazon CloudWatch](https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html)."
type = string
default = "PER_TOPIC_PER_BROKER"
}
variable "prometheus_jmx_exporter" {
description = "Indicates whether you want to enable or disable the JMX Exporter."
type = bool
default = false
}
variable "prometheus_node_exporter" {
description = "Indicates whether you want to enable or disable the Node Exporter."
type = bool
default = false
}
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 = ""
}
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_PLAINTEXT."
type = string
default = "TLS"
}
variable "encryption_in_transit_in_cluster" {
description = "Whether data communication among broker nodes is encrypted. Default value: true."
type = bool
default = true
}
variable "cloudwatch_logs_group" {
description = "Name of the Cloudwatch Log Group to deliver logs to."
type = string
default = ""
}
variable "firehose_logs_delivery_stream" {
description = "Name of the Kinesis Data Firehose delivery stream to deliver logs to."
type = string
default = ""
}
variable "cidr_blocks" {
description = "Allowed CIDR block for ingress MSK traffic"
type = list(any)
default = ["0.0.0.0/0"]
}