Skip to content

Commit

Permalink
add app gw container
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Thornton committed Mar 22, 2024
1 parent 7c9248f commit 41695fd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Terraform-AZURE-Services-Creation/AKS/rbac.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ resource "azurerm_role_assignment" "acr_pull" {
depends_on = [
azurerm_kubernetes_cluster.k8s
]
}
}

resource "azurerm_role_assignment" "appgwcontainer" {
principal_id = azurerm_user_assigned_identity.alb_identity.principal_id
scope = data.azurerm_resource_group.resource_group.name.id
role_definition_name = "reader"
depends_on = [
azurerm_kubernetes_cluster.k8s,
azurerm_user_assigned_identity.alb_identity
]
}

0 comments on commit 41695fd

Please sign in to comment.