From d2cf8a152ff5c7fbfaaf48a9df2e0ed0c194b8c2 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Sat, 6 Jan 2024 15:30:49 -0500 Subject: [PATCH] wrong key --- terraform/clouds/azure/iam.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/clouds/azure/iam.tf b/terraform/clouds/azure/iam.tf index 16907d4..8c4ab35 100644 --- a/terraform/clouds/azure/iam.tf +++ b/terraform/clouds/azure/iam.tf @@ -1,7 +1,7 @@ resource "azurerm_role_assignment" "aks-network-identity-kubelet" { scope = azurerm_virtual_network.network.id role_definition_name = "Network Contributor" - principal_id = module.aks[0].kubelet_identity + principal_id = module.aks[0].kubelet_identity.principal_id depends_on = [module.aks, azurerm_virtual_network.network] } @@ -9,7 +9,7 @@ resource "azurerm_role_assignment" "aks-network-identity-kubelet" { resource "azurerm_role_assignment" "aks-network-identity-ssi" { scope = azurerm_virtual_network.network.id role_definition_name = "Network Contributor" - principal_id = module.aks[0].cluster_identity + principal_id = module.aks[0].cluster_identity.principal_id depends_on = [module.aks, azurerm_virtual_network.network] } \ No newline at end of file