CloudNationHQ / terraform-azure-aks

Terraform module which creates azure kubernetes resources used by workloads and accelerators.
https://library.tf/modules/CloudNationHQ/aks/azure/latest
MIT License
0 stars 1 forks source link

Auto_scaler_profile is single instance #17

Closed cveld closed 9 months ago

cveld commented 9 months ago

Currently the auto_scaler_profile code is as follows:

    for_each = {
      for k, v in try(var.cluster.auto_scaler_profile, {}) : k => v
    }

This should be changed in:

    for_each = var.cluster.auto_scaler_profile != null ? [var.cluster.auto_scaler_profile] : []

As the auto_scaler_profile block can only exist once.