forked from johntran-fastly/tf_aws_elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
156 lines (125 loc) · 4.56 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
variable "domain_name" {
description = "Domain name for Elasticsearch cluster"
default = "es-domain"
}
variable "es_version" {
description = "Version of Elasticsearch to deploy (default 5.1)"
default = "5.1"
}
variable "instance_type" {
description = "ES instance type for data nodes in the cluster (default t2.small.elasticsearch)"
default = "t2.small.elasticsearch"
}
variable "instance_count" {
description = "Number of data nodes in the cluster (default 6)"
default = 6
}
variable "dedicated_master_type" {
description = "ES instance type to be used for dedicated masters (default same as instance_type)"
default = false
}
variable "encrypt_at_rest" {
description = "Enable encrption at rest (only specific instance family types support it: m4, c4, r4, i2, i3 default: false)"
default = false
}
variable "management_iam_roles" {
description = "List of IAM role ARNs from which to permit management traffic (default ['*']). Note that a client must match both the IP address and the IAM role patterns in order to be permitted access."
type = "list"
default = ["*"]
}
variable "super_management_iam_roles" {
description = "List of IAM role ARNs from which to permit management traffic (default ['']). Note that a client must match both the IP address and the IAM role patterns in order to be permitted access."
type = "list"
default = [""]
}
variable "admin_groups" {
description = "List of IAM group ARNs from which to permit admin policy attachment."
type = "list"
default = []
}
variable "management_public_ip_addresses" {
description = "List of IP addresses from which to permit management traffic (default []). Note that a client must match both the IP address and the IAM role patterns in order to be permitted access."
type = "list"
default = []
}
variable "es_zone_awareness" {
description = "Enable zone awareness for Elasticsearch cluster (default false)"
default = "false"
}
variable "es_availability_zone_count" {
description = "Number of zones for zone-aware clusters (default 2)"
default = "2"
}
variable "ebs_volume_size" {
description = "Optionally use EBS volumes for data storage by specifying volume size in GB (default 0)"
default = 0
}
variable "ebs_volume_type" {
description = "Storage type of EBS volumes, if used (default gp2)"
default = "gp2"
}
variable "kms_key_id" {
description = "KMS key used for elasticsearch"
default = ""
}
variable "snapshot_start_hour" {
description = "Hour at which automated snapshots are taken, in UTC (default 0)"
default = 0
}
variable "vpc_options" {
description = "A map of supported vpc options"
type = "map"
default = {
security_group_ids = []
subnet_ids = []
}
}
variable "tags" {
description = "tags to apply to all resources"
type = "map"
default = {}
}
variable "use_prefix" {
description = "Flag indicating whether or not to use the domain_prefix. Default: true"
default = true
}
variable "domain_prefix" {
description = "String to be prefixed to search domain. Default: tf-"
default = "tf-"
}
variable "deny_del_indices_prefixes" {
description = "String for index prefix prevent deletion policy. Default: [logstash]"
default = ["logstash"]
}
variable "dedicated_master_threshold" {
description = "The number of instances above which dedicated master nodes will be used. Default: 10"
default = 10
}
variable "index_slow_log_cloudwatch_log_group" {
description = "ARN for the CloudWatch log group to be use for the index slow logs"
default = "/aws/aes/domains/tf-es-agent-prod-or/index-logs"
}
variable "index_slow_log_enabled" {
description = "Enable the index slow logging (default false)"
default = true
}
variable "search_slow_log_cloudwatch_log_group" {
description = "ARN for the CloudWatch log group to be use for the search slow logs"
default = "/aws/aes/domains/tf-es-agent-prod-or/search-logs"
}
variable "search_slow_log_enabled" {
description = "Enable the search slow logging (default false)"
default = true
}
variable "es_app_log_cloudwatch_log_group" {
description = "ARN for the CloudWatch log group to be use for the Elasticsearch application logs"
default = "/aws/aes/domains/tf-es-agent-prod-or/application-logs"
}
variable "es_app_log_enable" {
description = "Enable the Elasticsearch application logging (default false)"
default = true
}
variable "node_to_node_encryption" {
default = true
}
# vim: set et fenc=utf-8 ff=unix ft=terraform sts=2 sw=2 ts=2 :