-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
163 lines (137 loc) · 3.73 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
variable "apikey" {
type = string
description = "Elasticsearch Service API Key"
sensitive = true
}
variable "deployment_template_id" {
type = string
description = "Deployment template identifier"
default = "aws-io-optimized-v2"
}
variable "name" {
type = string
description = "Deployment Name"
}
variable "region" {
type = string
description = "AWS Region"
default = "us-west-2"
}
variable "autoscale" {
type = string
description = "Enable or disable autoscaling"
default = "false"
}
variable "zone_count" {
type = number
description = "Number of zones the instance type of the Elasticsearch cluster will span"
default = 1
}
variable "sourceip" {
default = "0.0.0.0/0"
type = string
description = "traffic filter source"
}
variable "existing_s3_repo_bucket_name" {
type = string
description = "Existing S3 bucket name for repository"
default = ""
}
variable "s3_client_access_key" {
type = string
description = "Access Key ID for the S3 repository"
default = null
sensitive = true
}
variable "s3_client_secret_key" {
type = string
description = "Secret Access Key for the S3 repository"
default = null
sensitive = true
}
variable "local_elasticsearch_url" {
type = string
description = "Migrates self-hosted Elasticsearch data if its URL is provided – e.g., http://127.0.0.1:9200"
default = ""
}
variable "local_elasticsearch_repo_name" {
type = string
description = "Creates an S3 repository with the specified name for the local cluster"
default = "es-index-backups"
}
variable "repo_s3_bucket_prefix" {
type = string
description = "Creates a unique bucket name beginning with the specified prefix"
default = "es-s3-repo"
}
variable "agent_s3_bucket_prefix" {
type = string
description = "Creates a unique bucket name beginning with the specified prefix"
default = "es-s3-agent"
}
variable "log_s3_bucket_prefix" {
type = string
description = "Creates a unique bucket name beginning with the specified prefix"
default = "es-s3-logging"
}
variable "kms_key_id" {
description = "KMS Key ID"
type = string
default = null
}
# EC2
variable "ami" {
type = string
description = "AMI ID for the instance"
default = null
}
variable "key_name" {
type = string
description = "Key name of the EC2 Key Pair to use for the instance."
default = null
}
variable "instance_type" {
type = string
description = "The type of instance to start"
default = "t3.micro"
}
variable "availability_zone" {
type = string
description = "Availability Zone into which the instance is deployed"
default = null
}
variable "subnet_id" {
type = string
description = "Subnet ID"
default = null
}
variable "vpc_security_group_ids" {
type = list(string)
description = "A list of security group IDs with which to associate the instance"
default = null
}
variable "user_data" {
type = string
description = "The user data to provide when launching the instance."
default = null
}
variable "associate_public_ip_address" {
type = bool
description = "Whether to associate a public IP address with an instance in a VPC"
default = null
}
variable "root_block_device" {
type = list(any)
description = "Details about the root block device of the instance."
default = []
}
variable "ec2_name" {
type = string
description = "EC2 Name"
default = "single-instance"
}
variable "tags" {
type = map(string)
description = "tags, which could be used for additional tags"
default = {}
}