File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ resource "aws_eks_cluster" "this" {
63
63
content {
64
64
enabled = compute_config. value . enabled
65
65
node_pools = compute_config. value . enabled ? compute_config. value . node_pools : []
66
- node_role_arn = compute_config. value . node_pools != null ? try (aws_iam_role. eks_auto [0 ]. arn , compute_config. value . node_role_arn ) : null
66
+ node_role_arn = compute_config. value . enabled ? ( length (compute_config . value . node_pools ) > 0 ? try (aws_iam_role. eks_auto [0 ]. arn , compute_config. value . node_role_arn ) : null ) : null
67
67
}
68
68
}
69
69
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ variable "compute_config" {
66
66
description = " Configuration block for the cluster compute configuration"
67
67
type = object ({
68
68
enabled = optional (bool , false )
69
- node_pools = optional (list (string ))
69
+ node_pools = optional (list (string ), [] )
70
70
node_role_arn = optional (string )
71
71
})
72
72
default = null
You can’t perform that action at this time.
0 commit comments