Skip to content

Commit

Permalink
Add AKS cluster name suffix to the generated azurerm user assigned id…
Browse files Browse the repository at this point in the history
…entity
  • Loading branch information
amitlicht committed May 28, 2024
1 parent 57b9df4 commit 7202a63
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data "azurerm_resource_group" "current_resource_group" {
name = var.azure_resource_group
name = var.azure_resource_group
}

data "azurerm_kubernetes_cluster" "current_aks_cluster" {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ terraform {

provider "azurerm" {
features {}
tenant_id = var.azure_tenant_id
tenant_id = var.azure_tenant_id
subscription_id = var.azure_subscription_id
}
2 changes: 1 addition & 1 deletion resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "azurerm_user_assigned_identity" "otterize_operator_managed_identity" {
name = "ottr-k8s-operator-managed-identity"
name = "ottr-k8s-operator-managed-identity-${var.aks_cluster_name}"
location = data.azurerm_resource_group.current_resource_group.location
resource_group_name = data.azurerm_resource_group.current_resource_group.name
}
Expand Down
2 changes: 1 addition & 1 deletion variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variable "azure_tenant_id" {
type = string
}

variable "azure_subscription_id"{
variable "azure_subscription_id" {
description = "Azure Subscription ID"
type = string
}
Expand Down

0 comments on commit 7202a63

Please sign in to comment.