forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
84 lines (68 loc) · 2 KB
/
main.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
terraform {
required_version = ">= 1.1.8, < 2.0.0"
required_providers {
ec = {
source = "elastic/ec"
version = "0.5.1"
}
}
}
provider "ec" {}
module "ec_deployment" {
source = "../../infra/terraform/modules/ec_deployment"
region = var.region
deployment_template = "gcp-compute-optimized-v3"
deployment_name_prefix = "smoke-upgrade"
apm_server_size = "1g"
elasticsearch_size = "4g"
elasticsearch_zone_count = 1
stack_version = var.stack_version
integrations_server = var.integrations_server
}
variable "stack_version" {
# By default match the latest available 7.17.x
default = "7.17.[0-9]?([0-9])$"
description = "Optional stack version"
type = string
}
variable "integrations_server" {
default = true
description = "Optionally disable the integrations server block and use the apm block (7.x only)"
type = bool
}
variable "region" {
default = "gcp-us-west2"
description = "Optional ESS region where to run the smoke tests"
type = string
}
output "apm_secret_token" {
value = module.ec_deployment.apm_secret_token
description = "The APM Server secret token"
sensitive = true
}
output "apm_server_url" {
value = module.ec_deployment.apm_url
description = "The APM Server URL"
}
output "kibana_url" {
value = module.ec_deployment.kibana_url
description = "The Kibana URL"
}
output "elasticsearch_url" {
value = module.ec_deployment.elasticsearch_url
description = "The Elasticsearch URL"
}
output "elasticsearch_username" {
value = module.ec_deployment.elasticsearch_username
sensitive = true
description = "The Elasticsearch username"
}
output "elasticsearch_password" {
value = module.ec_deployment.elasticsearch_password
sensitive = true
description = "The Elasticsearch password"
}
output "stack_version" {
value = module.ec_deployment.stack_version
description = "The matching stack pack version from the provided stack_version"
}