From 2405de6082814ea917671242e58f6e25f84fd3e3 Mon Sep 17 00:00:00 2001 From: githubofkrishnadhas Date: Fri, 27 Dec 2024 21:15:25 +0530 Subject: [PATCH] remove role assignment resource block --- kubernetes-cluster/kubernetes.tf | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kubernetes-cluster/kubernetes.tf b/kubernetes-cluster/kubernetes.tf index a6b84c8..c11fa3b 100644 --- a/kubernetes-cluster/kubernetes.tf +++ b/kubernetes-cluster/kubernetes.tf @@ -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)