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" {
75
75
for_each = local. create_outposts_local_cluster ? [] : [1 ]
76
76
77
77
content {
78
- elastic_load_balancing {
78
+ dynamic "elastic_load_balancing" {
79
+ for_each = local. auto_mode_enabled ? [1 ] : []
79
80
80
- enabled = local. auto_mode_enabled
81
+ content {
82
+ enabled = local. auto_mode_enabled
83
+ }
81
84
}
82
85
83
86
ip_family = var. cluster_ip_family
@@ -130,9 +133,13 @@ resource "aws_eks_cluster" "this" {
130
133
}
131
134
}
132
135
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
+ }
136
143
}
137
144
}
138
145
You can’t perform that action at this time.
0 commit comments