Skip to content

Commit

Permalink
add min version for nodegroups
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Davis committed Mar 16, 2020
1 parent 0af23f5 commit 6460489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data "null_data_source" "node_groups" {

module "node_groups" {
source = "./modules/node_groups"
create_eks = var.create_eks
create_eks = var.create_eks && var.cluster_version >= 1.14
cluster_name = coalescelist(data.null_data_source.node_groups[*].outputs["cluster_name"], [""])[0]
default_iam_role_arn = coalescelist(aws_iam_role.workers[*].arn, [""])[0]
workers_group_defaults = local.workers_group_defaults
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ output "cluster_version" {

output "cluster_security_group_id" {
description = "Cluster security group ID attached to the EKS cluster."
value = aws_eks_cluster.this[0].vpc_config[0].cluster_security_group_id
value = element(concat(aws_eks_cluster.this[*].vpc_config[0].cluster_security_group_id, list("")), 0)
}

output "config_map_aws_auth" {
Expand Down

0 comments on commit 6460489

Please sign in to comment.