This Failed for me due to ssh_key { key_data = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey } and output "key_data" { value = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey } Planning failed. Terraform encountered an error while generating this plan. ╷ │ Error: Invalid function argument │ │ on main.tf line 48, in resource "azurerm_kubernetes_cluster" "k8s": │ 48: key_data = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey │ ├──────────────── │ │ while calling jsondecode(str) │ │ azapi_resource_action.ssh_public_key_gen.output is object with 2 attributes │ │ Invalid value for "str" parameter: string required. ╵ ╷ │ Error: Invalid function argument │ │ on ssh.tf line 23, in output "key_data": │ 23: value = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey │ ├──────────────── │ │ while calling jsondecode(str) │ │ azapi_resource_action.ssh_public_key_gen.output is object with 2 attributes │ │ Invalid value for "str" parameter: string required.
Perfect output came, Thanq sir.....but swiggy web page static laga....i tried to register, enter data, Not worked, i hope No database backend for it....