You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error when i run this code, azurerm_kubernetes_cluster.aks_cluster.kubelet_identity is empty list of object
Full Stack of the Error Trace:
│ Error: Failed to write plan file
│
│ The plan file could not be written: failed to write state snapshot: Failed
│ to serialize resource instance in state: Instance
│ data.azurerm_kubernetes_cluster.aks_cluster_data has status ObjectPlanned,
│ which cannot be saved in state..
╵
╷
│ Error: Invalid index
│
│ on azurerm_aks_cluster.tf line 164, in resource "azurerm_role_assignment" "acr_pull_role":
│ 164: principal_id = azurerm_kubernetes_cluster.aks_cluster.kubelet_identity.0.object_id
│ ├────────────────
│ │ azurerm_kubernetes_cluster.aks_cluster.kubelet_identity is empty list of object
│
│ The given key does not identify an element in this collection value: the
│ collection has no elements.
╵
Operation failed: failed running terraform plan (exit 1)�
Dear Houssem,
I am getting the following error when i run this code,
azurerm_kubernetes_cluster.aks_cluster.kubelet_identity is empty list of object
Full Stack of the Error Trace:
aks cluster terraform code
The text was updated successfully, but these errors were encountered: