Skip to content

Commit

Permalink
Replaced systmAssigned identity with service prinicpal (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshumarwah committed Jul 28, 2020
1 parent f40b4ac commit 4032e51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/azure-kubernetes-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ resource "azurerm_kubernetes_cluster" "K8s" {
private_cluster_enabled = var.private_cluster_enabled
dns_prefix = var.dns_prefix

identity {
type = var.identity_type
service_principal {
client_id = var.client_id
client_secret = var.client_secret
}

network_profile {
Expand Down
9 changes: 9 additions & 0 deletions modules/azure-kubernetes-cluster/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ variable "identity_type" {
default = "SystemAssigned"
}

variable "client_id" {
description = "This is the client id of azure AD application."
type = string
}

variable "client_secret" {
description = "This is the client secret of azure AD application."
}

variable "network_plugin" {
description = "Network plugin to use for networking."
type = string
Expand Down

0 comments on commit 4032e51

Please sign in to comment.