Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "aws_eks_cluster" "this" {
}

dynamic "compute_config" {
for_each = length(var.cluster_compute_config) > 0 ? [var.cluster_compute_config] : []
for_each = local.auto_mode_enabled ? [var.cluster_compute_config] : []

content {
enabled = local.auto_mode_enabled
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ variable "authentication_mode" {
variable "cluster_compute_config" {
description = "Configuration block for the cluster compute configuration"
type = any
nullable = false
default = {}
}

Expand Down