Skip to content

Commit

Permalink
remove role assignment resource block
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas committed Dec 27, 2024
1 parent e314fc8 commit 2405de6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kubernetes-cluster/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ resource "azurerm_resource_group" "rg" {
}
}

# Contributor role assignment on subscription level for SP
resource "azurerm_role_assignment" "role" {
scope = data.azurerm_subscription.primary.id
role_definition_name = "Contributor"
principal_id = data.azuread_service_principal.sp.object_id
depends_on = [ azurerm_kubernetes_cluster.aks_cluster ]
}

# Create AKS cluster, nodepools, loadbalancer etc
resource "azurerm_kubernetes_cluster" "aks_cluster" {
name = upper(var.aks_cluster_name)
Expand Down

0 comments on commit 2405de6

Please sign in to comment.