forked from idealo/terraform-aws-opensearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
204 lines (170 loc) · 5.98 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
variable "cluster_name" {
description = "The name of the OpenSearch cluster."
type = string
default = "opensearch"
}
variable "cluster_version" {
description = "The version of OpenSearch to deploy."
type = string
default = "1.0"
}
variable "cluster_domain" {
description = "The hosted zone name of the OpenSearch cluster."
type = string
}
variable "create_service_role" {
description = "Indicates whether to create the service-linked role. See https://docs.aws.amazon.com/opensearch-service/latest/developerguide/slr.html"
type = bool
default = true
}
variable "master_user_arn" {
description = "The ARN for the master user of the cluster. If not specified, then it defaults to using the IAM user that is making the request."
type = string
default = ""
}
variable "master_instance_enabled" {
description = "Indicates whether dedicated master nodes are enabled for the cluster."
type = bool
default = true
}
variable "master_instance_type" {
description = "The type of EC2 instances to run for each master node. A list of available instance types can you find at https://aws.amazon.com/en/opensearch-service/pricing/#On-Demand_instance_pricing"
type = string
default = "r6gd.large.elasticsearch"
validation {
condition = can(regex("^[m3|r3|i3|i2|r6gd]", var.master_instance_type))
error_message = "The EC2 master_instance_type must provide a SSD or NVMe-based local storage."
}
}
variable "master_instance_count" {
description = "The number of dedicated master nodes in the cluster."
type = number
default = 3
}
variable "hot_instance_type" {
description = "The type of EC2 instances to run for each hot node. A list of available instance types can you find at https://aws.amazon.com/en/opensearch-service/pricing/#On-Demand_instance_pricing"
type = string
default = "r6gd.4xlarge.elasticsearch"
validation {
condition = can(regex("^[m3|r3|i3|i2|r6gd]", var.hot_instance_type))
error_message = "The EC2 hot_instance_type must provide a SSD or NVMe-based local storage."
}
}
variable "hot_instance_count" {
description = "The number of dedicated hot nodes in the cluster."
type = number
default = 3
}
variable "warm_instance_enabled" {
description = "Indicates whether ultrawarm nodes are enabled for the cluster."
type = bool
default = true
}
variable "warm_instance_type" {
description = "The type of EC2 instances to run for each warm node. A list of available instance types can you find at https://aws.amazon.com/en/elasticsearch-service/pricing/#UltraWarm_pricing"
type = string
default = "ultrawarm1.large.elasticsearch"
}
variable "warm_instance_count" {
description = "The number of dedicated warm nodes in the cluster."
type = number
default = 3
}
variable "availability_zones" {
description = "The number of availability zones for the OpenSearch cluster. Valid values: 1, 2 or 3."
type = number
default = 3
}
variable "encrypt_kms_key_id" {
description = "The KMS key ID to encrypt the OpenSearch cluster with. If not specified, then it defaults to using the AWS OpenSearch Service KMS key."
type = string
default = ""
}
variable "saml_subject_key" {
description = "Element of the SAML assertion to use for username."
type = string
default = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
}
variable "saml_roles_key" {
description = "Element of the SAML assertion to use for backend roles."
type = string
default = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
}
variable "saml_entity_id" {
description = "The unique Entity ID of the application in SAML Identity Provider."
type = string
}
variable "saml_metadata_content" {
description = "The metadata of the SAML application in xml format."
type = string
}
variable "saml_session_timeout" {
description = "Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440."
type = number
default = 60
}
variable "saml_master_backend_role" {
description = "This backend role receives full permissions to the cluster, equivalent to a new master role, but can only use those permissions within Dashboards."
type = string
default = null
}
variable "saml_master_user_name" {
description = "This username receives full permissions to the cluster, equivalent to a new master user, but can only use those permissions within Dashboards."
type = string
default = null
}
variable "index_templates" {
description = "A map of all index templates to create."
type = map(any)
default = {}
}
variable "index_template_files" {
description = "A set of all index template files to create."
type = set(string)
default = []
}
variable "ism_policies" {
description = "A map of all ISM policies to create."
type = map(any)
default = {}
}
variable "ism_policy_files" {
description = "A set of all ISM policy files to create."
type = set(string)
default = []
}
variable "indices" {
description = "A map of all indices to create."
type = map(any)
default = {}
}
variable "index_files" {
description = "A set of all index files to create."
type = set(string)
default = []
}
variable "roles" {
description = "A map of all roles to create."
type = map(any)
default = {}
}
variable "role_files" {
description = "A set of all role files to create."
type = set(string)
default = []
}
variable "role_mappings" {
description = "A map of all role mappings to create."
type = map(any)
default = {}
}
variable "role_mapping_files" {
description = "A set of all role mapping files to create."
type = set(string)
default = []
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}