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" }