From cdc41a5430eaa8fa99543194445599b72c5d1de8 Mon Sep 17 00:00:00 2001 From: michel-laterman Date: Thu, 23 Nov 2023 09:56:42 -0800 Subject: [PATCH] Update terraform ecs provider --- dev-tools/cloud/terraform/main.tf | 14 +++++++++----- dev-tools/cloud/terraform/outputs.tf | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/dev-tools/cloud/terraform/main.tf b/dev-tools/cloud/terraform/main.tf index 92e07bf7e..9dc7d75bb 100644 --- a/dev-tools/cloud/terraform/main.tf +++ b/dev-tools/cloud/terraform/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { ec = { source = "elastic/ec" - version = "0.5.1" + version = "0.9.0" } } } @@ -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 } } diff --git a/dev-tools/cloud/terraform/outputs.tf b/dev-tools/cloud/terraform/outputs.tf index 8a892eb9d..f6c4e4e04 100644 --- a/dev-tools/cloud/terraform/outputs.tf +++ b/dev-tools/cloud/terraform/outputs.tf @@ -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.fleet description = "The secure Fleet URL" }