CloudNationHQ / terraform-azure-aks

Terraform module which creates azure kubernetes resources used by workloads and accelerators.
https://library.tf/modules/CloudNationHQ/aks/azure/latest
MIT License
0 stars 1 forks source link

key does not identify an element in collection value when using byo authentication #71

Closed dkooll closed 4 months ago

dkooll commented 4 months ago

The module should be able to handle the below requirements:

I get the below error:

on ../../main.tf line 212, in resource "azurerm_kubernetes_cluster" "aks":
 212:         key_data = try(var.cluster.public_key, null) != null ? var.cluster.public_key : tls_private_key.tls_key[var.cluster.name].public_key_openssh
    ├────────────────
    │ tls_private_key.tls_key is object with 1 attribute "default"
    │ var.cluster.name is "aks-demo-dev-sbid"

The given key does not identify an element in this collection value.