cloudposse / terraform-aws-eks-node-group

Terraform module to provision a fully managed AWS EKS Node Group
https://cloudposse.com/accelerate
Apache License 2.0
90 stars 128 forks source link

ASG tags with "false" value cluster_autoscaler option #113

Closed eliasmachado21 closed 2 years ago

eliasmachado21 commented 2 years ago

Describe the Bug

I'm trying to create a ASG without Cluster AutoScaler option enable

Expected Behavior

The ASG without tags for autodiscover CAS

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a nodegroup with the option input_cluster_autoscaler_enabled in false value

Screenshots

ASG tags Captura de Pantalla 2022-04-26 a la(s) 16 37 58

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

Gowiem commented 2 years ago

@eliasmachado21 Great point and should be an easy fix! Would you be willing to put together a small PR to address by changing this line to have the value be assigned from local.autoscaler_enabled

Nuru commented 2 years ago

@eliasmachado21 Great point and should be an easy fix! Would you be willing to put together a small PR to address by changing this line to have the value be assigned from local.autoscaler_enabled

@Gowiem That is not a sufficient fix for a couple of reasons:

I don't know for sure where these tags are coming from, but they are standard tags and I strongly suspect they are getting created by the EKS cluster itself. See https://github.com/aws/containers-roadmap/issues/608#issuecomment-639549332

Gowiem commented 2 years ago

@Nuru Ah gotcha -- I didn't read deeply enough into how autoscaler_enabled is being used, apologies. Also didn't know the context around the value being ignored -- That is not great. Anyway, thanks on weighing in.