# Questions about aws\_eks\_node\_group

**URL:** <https://discuss.hashicorp.com/t/questions-about-aws-eks-node-group/8109>\
**Category:** Terraform\
**Created:** [April 27, 2020, 6:20pm UTC](https://discuss.hashicorp.com/t/questions-about-aws-eks-node-group/8109 "2020-04-27T18:20:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaraldWilhelmi](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/haraldwilhelmi/32/6345_2.png) [@HaraldWilhelmi](https://discuss.hashicorp.com/u/HaraldWilhelmi)\
**Post date:** [April 27, 2020, 6:20pm UTC](https://discuss.hashicorp.com/t/questions-about-aws-eks-node-group/8109/1 "2020-04-27T18:20:52Z")

</div>

Hi,

just playing around with Kubernetes on AWS. When I tried to setup my on cluster using Terraform I used the aws\_eks\_node\_group resource (see 1.). That mostly worked. With the instructions I found in the internet, which suggested to configure the nodes manually I had less success. Beside that the “node group” seemed to be shorter and more elegant. That leads to by first question:

Is aws\_eks\_node\_group resource now the way to go?

When I try to destroy my cluster with “terraform destroy” I run into some problems. The workaround seems to be to delete some AWS load balancer (classic) manually. I believe that it was created implicitly with aws\_eks\_node\_group resource.

Is it true that this load balancer is created with aws\_eks\_node\_group?  
Is the “destroy” problem a bug or do I forgot something (like a depends\_on clause …)?

Getting a grip on that load balancer seems to be essential, when I want to configure DNS (e.g. via Route 53) for my cluster. However I failed to figure out how to do this with Terraform. My ideas so far:

- Use some data source connected with one of the Terraform resources related with EKS (aws\_eks\_node\_group or aws\_eks\_cluster). However I found no suitable information in these data sources.

- Find the data via the aws\_elb data source (see 2.). However this data source does not support filters like e.g. the aws\_ami data source (see 3.). So I can only find it, if I have found it already …

1. [https://www.terraform.io/docs/providers/aws/r/eks\_node\_group.html](https://www.terraform.io/docs/providers/aws/r/eks_node_group.html)
2. [https://www.terraform.io/docs/providers/aws/d/elb.html](https://www.terraform.io/docs/providers/aws/d/elb.html)
3. [https://www.terraform.io/docs/providers/aws/d/ami.html](https://www.terraform.io/docs/providers/aws/d/ami.html)

Any advice would be welcome.

Best regards & thanks  
Harald Wilhelmi

---

<div class="post-metadata">

**Author:** ![HaraldWilhelmi](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/haraldwilhelmi/32/6345_2.png) [@HaraldWilhelmi](https://discuss.hashicorp.com/u/HaraldWilhelmi)\
**Post date:** [April 29, 2020, 3:31pm UTC](https://discuss.hashicorp.com/t/questions-about-aws-eks-node-group/8109/2 "2020-04-29T15:31:45Z")

</div>

Actually I managed to answer my questions myself:

The problem occurred not with the destruction of node group but with the underlying VPC.  
The load balancer is not created by terraform but was created by a later helm command adding a deployment in Kubernetes. When deleting the deployment before doing the  
“terrafrom destroy” the “terrafrom destroy” works fine.
