Skip to content

Commit 1ac67b8

Browse files
authored
fix: Revert changes to disabling auto mode #3253 (#3255)
1 parent 9fa75c0 commit 1ac67b8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

main.tf

+12-5
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ resource "aws_eks_cluster" "this" {
7575
for_each = local.create_outposts_local_cluster ? [] : [1]
7676

7777
content {
78-
elastic_load_balancing {
78+
dynamic "elastic_load_balancing" {
79+
for_each = local.auto_mode_enabled ? [1] : []
7980

80-
enabled = local.auto_mode_enabled
81+
content {
82+
enabled = local.auto_mode_enabled
83+
}
8184
}
8285

8386
ip_family = var.cluster_ip_family
@@ -130,9 +133,13 @@ resource "aws_eks_cluster" "this" {
130133
}
131134
}
132135

133-
storage_config {
134-
block_storage {
135-
enabled = local.auto_mode_enabled
136+
dynamic "storage_config" {
137+
for_each = local.auto_mode_enabled ? [1] : []
138+
139+
content {
140+
block_storage {
141+
enabled = local.auto_mode_enabled
142+
}
136143
}
137144
}
138145

0 commit comments

Comments
 (0)