forked from Datatamer/terraform-aws-opensearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
132 lines (114 loc) · 3.55 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
variable "domain_name" {
type = string
description = "The name to give to the OpenSearch domain"
}
variable "es_version" {
default = "6.8"
type = string
description = "Version of OpenSearch to deploy"
}
variable "instance_count" {
default = 2
type = number
description = "Number of instances to launch in the OpenSearch domain"
}
variable "instance_type" {
default = "c5.large.elasticsearch"
type = string
description = "Instance type of data nodes in the domain"
}
variable "subnet_ids" {
type = list(string)
description = "List of subnet IDs for the OpenSearch domain to be created in"
}
variable "security_group_ids" {
default = []
type = list(string)
description = "List of security group IDs to be applied to the OpenSearch domain"
}
variable "snapshot_start_hour" {
default = 0
type = number
description = "Hour when an automated daily snapshot of the indices is taken"
}
variable "ebs_enabled" {
default = true
type = bool
description = "Whether EBS volumes are attached to data nodes"
}
variable "ebs_iops" {
default = null
type = number
description = <<EOF
The baseline I/O performance of EBS volumes attached to nodes.
Iops is only valid when volume type is io1
EOF
}
variable "ebs_volume_size" {
default = 100
type = number
description = "The size of EBS volumes attached to data nodes (in GB)"
}
variable "ebs_volume_type" {
default = "gp2"
type = string
description = "The type of EBS volumes attached to data nodes"
}
variable "es_tags" {
type = map(string)
description = "[DEPRECATED: Use `tags` instead] Additional tags to be attached to the OpenSearch domain and associated resources."
default = {}
}
variable "tags" {
type = map(string)
description = "A map of tags to add to all resources. Replaces `es_tags`."
default = {}
}
variable "kms_key_id" {
default = null
type = string
description = <<EOF
The KMS key id to encrypt the OpenSearch domain with.
If not specified then it defaults to using the aws/es service KMS key
EOF
}
variable "enforce_https" {
default = true
type = bool
description = "Whether or not to require HTTPS on the domain endpoint"
}
variable "tls_security_policy" {
default = "Policy-Min-TLS-1-2-2019-07"
type = string
description = <<EOF
The name of the TLS security policy that needs to be applied to the HTTPS endpoint.
Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07.
EOF
}
variable "node_to_node_encryption_enabled" {
default = true
type = bool
description = "Whether to enable node-to-node encryption"
}
variable "arn_partition" {
type = string
description = <<EOF
The partition in which the resource is located. A partition is a group of AWS Regions.
Each AWS account is scoped to one partition.
The following are the supported partitions:
aws -AWS Regions
aws-cn - China Regions
aws-us-gov - AWS GovCloud (US) Regions
EOF
default = "aws"
}
variable "log_types" {
type = list(string)
description = "A list of log types that will be published to CloudWatch. Valid values are SEARCH_SLOW_LOGS, INDEX_SLOW_LOGS, ES_APPLICATION_LOGS and AUDIT_LOGS."
default = ["ES_APPLICATION_LOGS", "SEARCH_SLOW_LOGS", "INDEX_SLOW_LOGS"]
}
variable "log_group_name" {
type = string
description = "The name of an existent CloudWatch Log Group that OpenSearch will publish logs to"
default = ""
}