Skip to content

Commit

Permalink
fix: Revert changes to disabling auto mode #3253 (#3255)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Dec 20, 2024
1 parent 9fa75c0 commit 1ac67b8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ resource "aws_eks_cluster" "this" {
for_each = local.create_outposts_local_cluster ? [] : [1]

content {
elastic_load_balancing {
dynamic "elastic_load_balancing" {
for_each = local.auto_mode_enabled ? [1] : []

enabled = local.auto_mode_enabled
content {
enabled = local.auto_mode_enabled
}
}

ip_family = var.cluster_ip_family
Expand Down Expand Up @@ -130,9 +133,13 @@ resource "aws_eks_cluster" "this" {
}
}

storage_config {
block_storage {
enabled = local.auto_mode_enabled
dynamic "storage_config" {
for_each = local.auto_mode_enabled ? [1] : []

content {
block_storage {
enabled = local.auto_mode_enabled
}
}
}

Expand Down

0 comments on commit 1ac67b8

Please sign in to comment.