Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ resource "azurerm_role_assignment" "acr" {
resource "azurerm_role_assignment" "network_contributor" {
for_each = var.create_role_assignment_network_contributor ? local.subnet_ids : []

principal_id = azurerm_kubernetes_cluster.main.kubelet_identity[0].object_id
principal_id = azurerm_kubernetes_cluster.main.identity[0].principal_id
scope = each.value
role_definition_name = "Network Contributor"
}