Skip to content

Commit

Permalink
Add variable azure_rbac_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yngveh committed Jun 16, 2023
1 parent 8b71471 commit 6122d24
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/rbac/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module "rbac" {
location = "norwayeast"
service_cidr = "10.241.0.0/24"
kubernetes_version = "1.18.14"
azure_rbac_enabled = true

agent_pools = [
{
Expand Down
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.57.0"
version = "~> 3.61.0"
}
azuread = {
source = "hashicorp/azuread"
Expand Down Expand Up @@ -173,6 +173,7 @@ resource "azurerm_kubernetes_cluster" "aks" {
azure_active_directory_role_based_access_control {
managed = true
admin_group_object_ids = var.cluster_admins
azure_rbac_enabled = var.azure_rbac_enabled
}

identity {
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ variable "azure_policy_enabled" {
default = true
}

variable "azure_rbac_enabled" {
description = "Enable Azure RBAC to control authorization"
type = bool
default = false
}


variable "oms_agent_log_analytics_workspace_id" {
description = "The ID of the Log Analytics Workspace which the OMS Agent should send data to. if value is null, no agent is deployed."
type = string
Expand Down

0 comments on commit 6122d24

Please sign in to comment.