-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
184 lines (154 loc) · 5.92 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
variable "create_service_linked_role" {
description = "A boolean value to determine if the ElasticSearch Service Linked Role should be created. This should only be set to true if the Service Linked Role is not already present."
type = bool
default = false
}
variable "use_custom_access_policy" {
description = "Use a custom access policy instead of VPC or IP Based. Insert policy in `custom_access_policy`"
type = bool
default = false
}
variable "custom_access_policy" {
description = "The custom access policy as string of JSON."
type = string
default = ""
}
variable "data_node_count" {
description = "Number of data nodes in the Elasticsearch cluster. If using Zone Awareness this must be a multiple of the number of subnets being used, e.g. 2, 4, 6, etc. for 2 subnets or 3, 6, 9, etc. for 3 subnets."
type = number
default = 6
}
variable "data_node_instance_type" {
description = "Select data node instance type. See https://aws.amazon.com/elasticsearch-service/pricing/ for supported instance types."
type = string
default = "m5.large.elasticsearch"
}
variable "ebs_iops" {
description = "The number of I/O operations per second (IOPS) that the volume supports."
type = number
default = 0
}
variable "ebs_size" {
description = "The size of the EBS volume for each data node."
type = number
default = 35
}
variable "ebs_type" {
description = "The EBS volume type to use with the Amazon ES domain, such as standard, gp2, or io1."
type = string
default = "gp2"
}
variable "elasticsearch_version" {
description = "Elasticsearch Version."
type = string
default = "7.1"
}
variable "encrypt_storage_enabled" {
description = "A boolean value to determine if encryption at rest is enabled for the Elasticsearch cluster. Version must be at least 5.1."
type = bool
default = false
}
variable "encrypt_traffic_enabled" {
description = "A boolean value to determine if encryption for node-to-node traffic is enabled for the Elasticsearch cluster. Version must be at least 6.0."
type = bool
default = false
}
variable "encryption_kms_key" {
description = "The KMS key to use for encryption at rest on the Elasticsearch cluster.If omitted and encryption at rest is enabled, the aws/es KMS key is used."
type = string
default = ""
}
variable "environment" {
description = "Application environment for which this network is being created. Preferred value are Development, Integration, PreProduction, Production, QA, Staging, or Test"
type = string
default = "Development"
}
variable "internal_record_name" {
description = "Record Name for the new Resource Record in the Internal Hosted Zone"
type = string
default = ""
}
variable "internal_zone_id" {
description = "The Route53 Internal Hosted Zone ID"
type = string
default = ""
}
variable "internal_zone_name" {
description = "TLD for Internal Hosted Zone"
type = string
default = ""
}
variable "ip_whitelist" {
description = "IP Addresses allowed to access the ElasticSearch Cluster. Should be supplied if Elasticsearch cluster is not VPC enabled."
type = list(string)
default = ["127.0.0.1"]
}
variable "logging_application_logs" {
description = "A boolean value to determine if logging is enabled for ES_APPLICATION_LOGS."
type = bool
default = false
}
variable "logging_index_slow_logs" {
description = "A boolean value to determine if logging is enabled for INDEX_SLOW_LOGS."
type = bool
default = false
}
variable "logging_retention" {
description = "The number of days to retain Cloudwatch Logs for the Elasticsearch cluster."
type = number
default = 30
}
variable "logging_search_slow_logs" {
description = "A boolean value to determine if logging is enabled for SEARCH_SLOW_LOGS."
type = bool
default = false
}
variable "master_node_count" {
description = "Number of master nodes in the Elasticsearch cluster. Allowed values are 0, 3 or 5."
type = number
default = 3
}
variable "master_node_instance_type" {
description = "Select master node instance type. See https://aws.amazon.com/elasticsearch-service/pricing/ for supported instance types."
type = string
default = "m5.large.elasticsearch"
}
variable "max_clause_count" {
description = "Note the use of a string rather than an integer. Specifies the maximum number of clauses allowed in a Lucene boolean query. 1024 is the default. Queries with more than the permitted number of clauses that result in a TooManyClauses error."
type = string
default = "1024"
}
variable "name" {
description = "The desired name for the Elasticsearch domain."
type = string
}
variable "security_groups" {
description = "A list of EC2 security groups to assign to the Elasticsearch cluster. Ignored if Elasticsearch cluster is not VPC enabled."
type = list(string)
default = []
}
variable "snapshot_start_hour" {
description = "The hour (0-23) to issue a daily snapshot of Elasticsearch cluster."
type = number
default = 0
}
variable "subnets" {
description = "Subnets for Elasticsearch cluster. Ignored if Elasticsearch cluster is not VPC enabled. If not using Zone Awareness this should be a list of one subnet."
type = list(string)
default = []
}
variable "tags" {
description = "Additional tags to be added to the Elasticsearch cluster."
type = map(string)
default = {}
}
variable "vpc_enabled" {
description = "A boolean value to determine if the Elasticsearch cluster is VPC enabled."
type = bool
default = false
}
variable "zone_awareness_enabled" {
description = "A boolean value to determine if Zone Awareness is enabled. The number of data nodes must be even if this is `true`."
type = bool
default = true
}