forked from barryw/terraform-aws-zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
125 lines (103 loc) · 3.1 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
variable "keypair_name" {
description = "The name of an existing keypair to assign to the Zookeeper nodes"
type = string
default = ""
}
variable "vpc_id" {
description = "The ID of the VPC to deploy resources to"
type = string
}
variable "zookeeper_subnets" {
description = "The list of subnets to deploy resources to. Must exist within the selected VPC"
type = list(string)
}
variable "create_bastion" {
description = "Whether to create a bastion instance or not"
default = false
type = bool
}
variable "bastion_subnet" {
description = "The subnet to put the bastion on if one is being created. Should be public."
type = string
}
variable "bastion_ingress_cidrs" {
description = "A list of CIDR ranges that will be allowed to SSH into the bastion. Defaults to the world."
type = list(string)
default = ["0.0.0.0/0"]
}
variable "zookeeper_version" {
description = "The version of Zookeeper to install"
default = "3.8.1"
}
variable "tags" {
description = "A map of tags that you want associated with all of the resources created"
type = map(any)
}
variable "name_prefix" {
description = "The string to prefix to the name of the Zookeeper resources"
type = string
default = ""
}
variable "cluster_size" {
description = "The number of Zookeeper nodes to provision and keep in service. Must be an odd number"
default = 5
validation {
condition = var.cluster_size % 2 == 1
error_message = "The number of Zookeeper nodes in the ensemble must be odd."
}
}
variable "instance_type" {
description = "The instance type to use for the Zookeeper nodes"
type = string
default = "m4.large"
}
variable "data_volume_type" {
description = "The EBS volume type for each Zookeeper node's data volume"
default = "gp2"
}
variable "root_volume_size" {
description = "The size in GB of the Zookeeper node's root filesystem"
default = 32
}
variable "data_volume_size" {
description = "The size in GB of each Zookeeper node's data volume"
default = 10
}
variable "log_volume_type" {
description = "The EBS volume type for each Zookeeper node's log volume"
default = "gp2"
}
variable "log_volume_size" {
description = "The size in GB of each Zookeeper node's log volume"
default = 10
}
variable "route53_zone" {
description = "The Route53 zone to create the Zookeeper DNS records on"
type = string
}
variable "route53_zone_is_private" {
description = "If the Route53 zone for Zookeeper DNS records is private"
default = false
type = bool
}
variable "client_security_group_id" {
description = "The security group id to grant access to the zookeeper nodes on port 2181"
type = string
}
variable "zookeeper_config" {
description = "Settings for Zookeeper"
default = {
clientPort = 2181,
syncLimit = 5,
initLimit = 10,
tickTime = 2000,
zkHeap = 4096
}
}
variable "cloudwatch_namespace" {
description = "The namespace for Cloudwatch Metrics"
default = "CWAgent"
}
variable "subdomain" {
type = string
}