File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ resource "aws_eks_cluster" "this" {
58
58
}
59
59
60
60
dynamic "compute_config" {
61
- for_each = var. compute_config != null ? [ var . compute_config ] : [ ]
61
+ for_each = var. compute_config [ * ]
62
62
63
63
content {
64
64
enabled = compute_config. value . enabled
@@ -81,7 +81,7 @@ resource "aws_eks_cluster" "this" {
81
81
82
82
content {
83
83
dynamic "elastic_load_balancing" {
84
- for_each = local . auto_mode_enabled ? [ 1 ] : [ ]
84
+ for_each = var . compute_config [ * ]
85
85
86
86
content {
87
87
enabled = local. auto_mode_enabled
@@ -148,7 +148,7 @@ resource "aws_eks_cluster" "this" {
148
148
}
149
149
150
150
dynamic "storage_config" {
151
- for_each = local . auto_mode_enabled ? [ 1 ] : [ ]
151
+ for_each = var . compute_config [ * ]
152
152
153
153
content {
154
154
block_storage {
You can’t perform that action at this time.
0 commit comments