generated from DNXLabs/terraform-aws-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
_variables.tf
250 lines (208 loc) · 6.3 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
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.1"
}
variable "cluster_domain" {
description = "The hosted zone name of the OpenSearch cluster."
type = string
}
variable "cluster_hostname" {
description = "The hostname name of the OpenSearch cluster."
type = string
}
variable "advanced_options" {
description = "Key-value string pairs to specify advanced configuration options."
type = map(string)
default = null
}
variable "vpc_id" {
description = "VPC"
type = string
}
variable "subnets_id" {
description = "Subnets"
type = list(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"
}
variable "master_instance_count" {
description = "The number of dedicated master nodes in the cluster."
type = number
default = 1
}
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.large.elasticsearch"
}
variable "hot_instance_count" {
description = "The number of dedicated hot nodes in the cluster."
type = number
default = 1
}
variable "warm_instance_enabled" {
description = "Indicates whether ultrawarm nodes are enabled for the cluster."
type = bool
default = false
}
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 = 1
}
variable "availability_zones" {
description = "The number of availability zones for the OpenSearch cluster. Valid values: 1, 2 or 3."
type = number
default = 1
}
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 = ""
}
variable "saml_roles_key" {
description = "Element of the SAML assertion to use for backend roles."
type = string
default = ""
}
variable "enable_saml_options" {
description = "Enable or not saml options"
type = string
default = true
}
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 = "SAML Master backend role."
type = string
default = ""
}
variable "saml_master_user_name" {
description = "SAML master user name"
type = string
default = ""
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}
variable "ebs_enabled" {
type = bool
default = true
}
variable "ebs_volume_size" {
type = number
default = 10
}
variable "ebs_volume_type" {
type = string
default = null
}
variable "ebs_iops" {
type = number
default = null
}
variable "log_publishing_options_enable" {
type = bool
default = null
}
variable "log_publishing_options_cloudwatch_log_group_arn" {
type = string
default = null
}
variable "log_publishing_options_log_type" {
type = string
default = null
}
variable "allow_security_group_ids" {
type = list(object({
name = string
description = string
security_group_id = string
from_port = number
to_port = number
protocol = string
}))
description = "List of Security Group IDs to allow connection to this Cluster"
default = []
}
variable "allow_cidrs" {
type = list(object({
name = string
description = string
cidr = list(string)
from_port = number
to_port = number
protocol = string
}))
description = "List of CIDR to allow connection to this Cluster"
default = []
}
variable "log_publishing_options" {
description = "A list of maps containing log publishing options."
type = list(object({
enable = bool
cloudwatch_log_group_arn = string
log_type = string
}))
default = []
}
variable "advanced_security_options_enabled" {
description = "Indicates whether advanced security is enabled."
type = bool
default = false
}
variable "advanced_security_options_internal_user_db" {
description = "Indicates whether the internal user database is enabled."
type = bool
default = false
}
variable "create_custom_endpoint" {
default = true
}