Skip to content

Commit 3a77b9c

Browse files
authored
[Buildkite] Update terraform ec provider for Cloud E2E tests step (#3249)
Update terraform provider used to create cloud deployments in CI up to version 0.9.0. This terraform provider is used in the Cloud E2E test step.
1 parent bbb2d96 commit 3a77b9c

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.buildkite/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
DOCKER_IMAGE_LATEST_TAG: "latest" # needs to rename for rollback
1010
DOCKER_IMAGE_GIT_TAG: "${BUILDKITE_BRANCH}" # needs to rename for rollback
1111
GO_AGENT_IMAGE: "golang:${GO_VERSION}"
12-
TERRAFORM_VERSION: "1.6.3"
12+
TERRAFORM_VERSION: "1.6.4"
1313

1414
steps:
1515
- group: "Check and build"

dev-tools/cloud/terraform/main.tf

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
ec = {
66
source = "elastic/ec"
7-
version = "0.5.1"
7+
version = "0.9.0"
88
}
99
}
1010
}
@@ -58,12 +58,16 @@ resource "ec_deployment" "deployment" {
5858
"creator" = var.creator
5959
}
6060

61-
elasticsearch {}
61+
elasticsearch = {
62+
hot = {
63+
autoscaling = {}
64+
}
65+
}
6266

63-
kibana {}
67+
kibana = {}
6468

65-
integrations_server {
66-
config {
69+
integrations_server = {
70+
config = {
6771
docker_image = local.docker_image_ea
6872
}
6973
}

dev-tools/cloud/terraform/outputs.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ output "elasticsearch_password" {
1616
}
1717

1818
output "elasticsearch_url" {
19-
value = ec_deployment.deployment.elasticsearch.0.https_endpoint
19+
value = ec_deployment.deployment.elasticsearch.https_endpoint
2020
description = "The secure Elasticsearch URL"
2121
}
2222

2323
output "kibana_url" {
24-
value = ec_deployment.deployment.kibana.0.https_endpoint
24+
value = ec_deployment.deployment.kibana.https_endpoint
2525
description = "The secure Kibana URL"
2626
}
2727

2828
output "fleet_url" {
29-
value = ec_deployment.deployment.integrations_server.0.fleet_https_endpoint
29+
value = ec_deployment.deployment.integrations_server.endpoints != null ? ec_deployment.deployment.integrations_server.endpoints.fleet : ""
3030
description = "The secure Fleet URL"
3131
}

0 commit comments

Comments
 (0)