File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments