From 7726f6eebef5acd88569ebfd3d9668247ead5881 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 28 Mar 2024 12:56:38 -0700 Subject: [PATCH] add key_data in output file in /ops folder --- ops/resources/aks/outputs.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ops/resources/aks/outputs.tf b/ops/resources/aks/outputs.tf index 7d3a042..2c339d6 100644 --- a/ops/resources/aks/outputs.tf +++ b/ops/resources/aks/outputs.tf @@ -35,4 +35,8 @@ output "host" { output "kube_config" { value = azurerm_kubernetes_cluster.k8s.kube_config_raw sensitive = true +} + +output "key_data" { + value = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey } \ No newline at end of file