From c8b068a6f2125b783634a8c8de9f2ff3075ab97d Mon Sep 17 00:00:00 2001 From: Niels Abildgaard Date: Thu, 9 May 2024 12:04:38 +0200 Subject: [PATCH] Terraform lint fix 2 --- .../terraform/modules/dpl-platform-environment/aks.tf | 2 +- .../terraform/modules/dpl-platform-environment/variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/terraform/modules/dpl-platform-environment/aks.tf b/infrastructure/terraform/modules/dpl-platform-environment/aks.tf index d7d6094c..221b9dd1 100644 --- a/infrastructure/terraform/modules/dpl-platform-environment/aks.tf +++ b/infrastructure/terraform/modules/dpl-platform-environment/aks.tf @@ -62,7 +62,7 @@ resource "azurerm_kubernetes_cluster" "cluster" { # Add a application default nodepool. resource "azurerm_kubernetes_cluster_node_pool" "pool" { - for_each = var.node_pools + for_each = var.node_pools name = each.key kubernetes_cluster_id = azurerm_kubernetes_cluster.cluster.id vnet_subnet_id = azurerm_subnet.aks.id diff --git a/infrastructure/terraform/modules/dpl-platform-environment/variables.tf b/infrastructure/terraform/modules/dpl-platform-environment/variables.tf index 46440d7e..9ab322fe 100644 --- a/infrastructure/terraform/modules/dpl-platform-environment/variables.tf +++ b/infrastructure/terraform/modules/dpl-platform-environment/variables.tf @@ -34,7 +34,7 @@ variable "location" { variable "node_pools" { description = "The node pools (other than the system one) used for the cluster" default = {} - type = map + type = map(any) } variable "node_pool_system_count" {