Skip to content

Commit

Permalink
feat: Support for cost_analysis_enabled property of azurerm_kubernete…
Browse files Browse the repository at this point in the history
…s_cluster

The property is available since Terraform provider for Azure v3.106.0
- hashicorp/terraform-provider-azurerm#26052

Signed-off-by: Mateusz Łoskot <mateusz@loskot.net>
  • Loading branch information
mloskot committed Oct 24, 2024
1 parent b287b56 commit aa22f44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion r-aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ resource "azurerm_kubernetes_cluster" "aks" {
}

# Azure integration config
azure_policy_enabled = var.azure_policy_enabled
azure_policy_enabled = var.azure_policy_enabled
cost_analysis_enabled = var.cost_analysis_enabled

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

variable "cost_analysis_enabled" {
description = "Option to enable cost analysis in the Azure portal for this Kubernetes cluster. The `sku_tier` must be set to `Standard` or `Premium` to enable this feature."
type = bool
nullable = false
default = false
}

variable "linux_profile" {
description = "Username and SSH public key for accessing Linux nodes with SSH."
type = object({
Expand Down

0 comments on commit aa22f44

Please sign in to comment.