From 1b1ad896ec50dfc7a18f7541c8b069fd666ddf2b Mon Sep 17 00:00:00 2001 From: Juana De La Cuesta Date: Tue, 28 Jan 2025 18:25:02 +0100 Subject: [PATCH] Add the path to the ssh key to connect to the cluster's instances as an output (#24969) * fix: add the ssh key pem path to te outputs and fix the message with the correct path * func: add ssh pem key as output --- e2e/terraform/provision-infra/outputs.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/terraform/provision-infra/outputs.tf b/e2e/terraform/provision-infra/outputs.tf index 676f57750..ed5c18c9e 100644 --- a/e2e/terraform/provision-infra/outputs.tf +++ b/e2e/terraform/provision-infra/outputs.tf @@ -81,6 +81,10 @@ output "key_file" { value = "${abspath(local.keys_dir)}/tls_api_client.key" } +output "ssh_key_file" { + value = "${abspath(local.keys_dir)}/${local.random_name}.pem" +} + output "nomad_token" { value = "${data.local_sensitive_file.nomad_token.content}" sensitive = true