jenkins-x/terraform-aws-eks-jx

Create node_groups_managed fails

rupertgti opened this issue · 1 comments

Summary

Following: https://github.com/jenkins-x/terraform-aws-eks-jx#custom-eks-node-groups

If you want to change enable_worker_group = false and apply a custom configuration of node_groups_managed

terraform apply -target module.eks-jx

Error: error waiting for EKS Node Group (xxx-xxxxx-jx3-dev-xxx:zzz-zzzzzzzz-jx3-dev-zzzz-pepeluis-nodes20210930125545600100000001) to create: unexpected state 'CREATE_FAILED', wanted target 'ACTIVE'. last error: 1 error occurred:
        * i-03470a0fb3778068b9, i-0b7f47eavb3f4c38f7, i-0c13adr93c4081e9: NodeCreationFailure: Instances failed to join the kubernetes cluster



  on .terraform/modules/eks-jx.cluster.eks/modules/node_groups/main.tf line 1, in resource "aws_eks_node_group" "workers":
   1: resource "aws_eks_node_group" "workers" {

But I see the the Auto Scaling group created:
image

Maybe in .terraform\modules\eks-jx.cluster.eks\modules\node_groups\main.tf the module is waiting the node_group_name and cause the error

Steps to reproduce the behavior

terraform apply -target module.eks-jx

The output of terraform version is:

0.13.7

Module version

1.16.1 - 1.15.47

Operating system

WSL 2 Ubuntu

I was using an old previous terraform generate cluster, but I test again with a new terraform cluster and the problem doesn't exist. I close the issue