-
Notifications
You must be signed in to change notification settings - Fork 27
/
variables.tf
153 lines (123 loc) · 2.81 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
/*
* Kafka module variables
*/
variable "environment" {
type = "string"
description = "environment to configure"
}
variable "app_name" {
description = "application name"
default = "infra"
}
variable "brokers_per_az" {
description = "number of Kafka brokers per AZ"
default = 1
}
variable "zookeeper_addr" {
type = "string"
description = "network number for zookeeper IPs"
}
variable "zookeeper_ami" {
type = "string"
description = "AWS AMI for zookeeper"
}
variable "zookeeper_user" {
type = "string"
description = "user in zookeeper AMI"
}
variable "zookeeper_instance_type" {
type = "string"
description = "instance type for zookeeper server"
}
variable "zookeeper_version" {
description = "Zookeeper version"
default = "3.4.10"
}
variable "zookeeper_repo" {
description = "Zookeeper distro site"
default = "http://apache.org/dist/zookeeper"
}
variable "kafka_ami" {
type = "string"
description = "AWS AMI for kafka"
}
variable "kafka_user" {
type = "string"
description = "user in kafka AMI"
}
variable "kafka_instance_type" {
type = "string"
description = "instance type for kafka server"
}
variable "kafka_version" {
description = "Kafka version"
default = "0.11.0.0"
}
variable "scala_version" {
description = "Scala version used in Kafka package"
default = "2.12"
}
variable "kafka_repo" {
description = "Kafka distro site"
default = "http://apache.org/dist/kafka"
}
variable "ebs_mount_point" {
description = "mount point for EBS volume"
default = "/mnt/kafka"
}
variable "ebs_device_name" {
description = "EBS attached device"
default = "/dev/xvdf"
}
variable "ebs_volume_ids" {
type = "list"
description = "list of EBS volume IDs"
}
variable "num_partitions" {
description = "number of partitions per topic"
default = 1
}
variable "log_retention" {
description = "retention period (hours)"
default = 168
}
variable "subnet_ids" {
type = "list"
description = "list of subnet IDs"
}
variable "static_subnet_ids" {
type = "list"
description = "list of subnet IDs for static IPs (/24 CIDR)"
}
variable "security_group_ids" {
type = "list"
description = "list of security group IDs"
}
variable "iam_instance_profile" {
type = "string"
description = "IAM instance profile"
}
variable "key_name" {
type = "string"
description = "key pair for SSH access"
}
variable "private_key" {
type = "string"
description = "local path to ssh private key"
}
variable "bastion_ip" {
type = "string"
description = "bastion IP address for ssh access"
}
variable "bastion_user" {
type = "string"
description = "user on bastion server"
}
variable "bastion_private_key" {
type = "string"
description = "local path to ssh private key for bastion access"
}
variable "cloudwatch_alarm_arn" {
type = "string"
description = "cloudwatch alarm ARN"
}