-
Notifications
You must be signed in to change notification settings - Fork 528
/
Copy pathvariables.tf
219 lines (180 loc) · 5.12 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
## General configuration
variable "user_name" {
description = "Required username to use for prefixes"
type = string
}
variable "run_standalone" {
default = false
description = "If set run benchmarks against standalone APM Server connected to moxy"
type = bool
}
## Deployment configuration
variable "ess_region" {
default = "gcp-us-west2"
description = "Optional ESS region where the deployment will be created. Defaults to gcp-us-west2"
type = string
}
variable "deployment_template" {
default = "gcp-cpu-optimized"
description = "Optional deployment template. Defaults to the CPU optimized template for GCP"
type = string
}
variable "stack_version" {
default = "latest"
description = "Optional stack version"
type = string
}
variable "apm_server_size" {
default = "1g"
type = string
description = "Optional apm server instance size"
}
variable "apm_server_zone_count" {
default = 1
type = number
description = "Optional apm server zone count"
}
variable "elasticsearch_size" {
default = "8g"
type = string
description = "Optional Elasticsearch instance size"
}
variable "elasticsearch_zone_count" {
default = 2
type = number
description = "Optional Elasticsearch zone count"
}
variable "elasticsearch_dedicated_masters" {
default = false
type = bool
description = "Optional Elasticsearch dedicated masters"
}
variable "docker_image_tag_override" {
default = {
"elasticsearch" : "",
"kibana" : "",
"apm" : "",
}
description = "Optional docker image tag override"
type = map(string)
}
variable "docker_image_override" {
default = {
"elasticsearch" : "docker.elastic.co/cloud-release/elasticsearch-cloud-ess",
"kibana" : "docker.elastic.co/cloud-release/kibana-cloud",
"apm" : "docker.elastic.co/cloud-release/elastic-agent-cloud",
}
type = map(string)
}
variable "apm_shards" {
default = 0
type = number
description = "The number of shards to use for apm indices. Defaults to 0, doesn't modify the default values"
}
variable "drop_pipeline" {
default = false
description = "Whether or not to install an Elasticsearch ingest pipeline to drop all incoming APM documents. Defaults to false"
type = bool
}
variable "apm_server_tail_sampling" {
default = false
description = "Whether or not to enable APM Server tail-based sampling. Defaults to false"
type = bool
}
variable "apm_server_tail_sampling_storage_limit" {
default = "10GB"
description = "Storage size limit of APM Server tail-based sampling. Defaults to 10GB"
type = string
}
# Standalone
variable "apm_server_bin_path" {
default = "../../build"
type = string
description = "Optional path to APM Server binary"
}
variable "moxy_bin_path" {
default = "../../build"
type = string
description = "Optional path to moxy binary"
}
variable "standalone_apm_server_instance_size" {
default = "c6i.2xlarge"
type = string
description = "Optional instance type to use for APM Server VM"
}
variable "standalone_moxy_instance_size" {
default = "c6i.4xlarge"
type = string
description = "Optional instance type to use for moxy VM"
}
variable "standalone_apm_server_volume_type" {
default = "gp3"
type = string
description = "Optional volume type to use for APM Server VM"
}
variable "standalone_apm_server_volume_size" {
default = null
type = number
description = "Optional volume size in GB to use for APM Server VM"
}
variable "standalone_apm_server_iops" {
default = null
type = number
description = "Optional disk IOPS in GB to use for APM Server VM"
}
## VPC Network settings
variable "vpc_cidr" {
default = "192.168.44.0/24"
type = string
}
variable "public_cidr" {
default = [
"192.168.44.0/26",
"192.168.44.64/26",
"192.168.44.128/26",
]
type = list(string)
}
## Worker configuration
variable "worker_region" {
default = "us-west-2"
description = "Optional ESS region where the deployment will be created. Defaults to us-west-2 (AWS)"
type = string
}
variable "apmbench_bin_path" {
default = "../../systemtest/cmd/apmbench"
type = string
description = "Optional path to the apmbench binary"
}
variable "worker_instance_type" {
default = "c6i.large"
type = string
description = "Optional instance type to use for the worker VM"
}
variable "private_key" {
default = "~/.ssh/id_rsa_terraform"
type = string
}
variable "public_key" {
default = "~/.ssh/id_rsa_terraform.pub"
type = string
}
# CI variables
variable "BRANCH" {
description = "Branch name or pull request for tagging purposes"
default = "unknown-branch"
}
variable "BUILD_ID" {
description = "Build ID in the CI for tagging purposes"
default = "unknown-build"
}
variable "CREATED_DATE" {
description = "Creation date in epoch time for tagging purposes"
default = ""
}
variable "ENVIRONMENT" {
default = "unknown-environment"
}
variable "REPO" {
default = "unknown-repo-name"
}