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