Fixing command to get public key
This commit is contained in:
@ -35,7 +35,7 @@ resource "azurerm_kubernetes_cluster" "k8s" {
|
||||
admin_username = var.username
|
||||
|
||||
ssh_key {
|
||||
key_data = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
|
||||
key_data = azapi_resource_action.ssh_public_key_gen.output.publicKey
|
||||
}
|
||||
}
|
||||
network_profile {
|
||||
|
@ -20,5 +20,5 @@ resource "azapi_resource" "ssh_public_key" {
|
||||
}
|
||||
|
||||
output "key_data" {
|
||||
value = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
|
||||
value = azapi_resource_action.ssh_public_key_gen.output.publicKey
|
||||
}
|
Reference in New Issue
Block a user