Skip to content

Commit

Permalink
[Buildkite] Update terraform ec provider for Cloud E2E tests step (#3249
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
mrodm authored Feb 2, 2024
1 parent bbb2d96 commit 3a77b9c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
DOCKER_IMAGE_LATEST_TAG: "latest" # needs to rename for rollback
DOCKER_IMAGE_GIT_TAG: "${BUILDKITE_BRANCH}" # needs to rename for rollback
GO_AGENT_IMAGE: "golang:${GO_VERSION}"
TERRAFORM_VERSION: "1.6.3"
TERRAFORM_VERSION: "1.6.4"

steps:
- group: "Check and build"
Expand Down
14 changes: 9 additions & 5 deletions dev-tools/cloud/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
ec = {
source = "elastic/ec"
version = "0.5.1"
version = "0.9.0"
}
}
}
Expand Down Expand Up @@ -58,12 +58,16 @@ resource "ec_deployment" "deployment" {
"creator" = var.creator
}

elasticsearch {}
elasticsearch = {
hot = {
autoscaling = {}
}
}

kibana {}
kibana = {}

integrations_server {
config {
integrations_server = {
config = {
docker_image = local.docker_image_ea
}
}
Expand Down
6 changes: 3 additions & 3 deletions dev-tools/cloud/terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ output "elasticsearch_password" {
}

output "elasticsearch_url" {
value = ec_deployment.deployment.elasticsearch.0.https_endpoint
value = ec_deployment.deployment.elasticsearch.https_endpoint
description = "The secure Elasticsearch URL"
}

output "kibana_url" {
value = ec_deployment.deployment.kibana.0.https_endpoint
value = ec_deployment.deployment.kibana.https_endpoint
description = "The secure Kibana URL"
}

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

0 comments on commit 3a77b9c

Please sign in to comment.