EKS cluster managed workers: customize auto scaling group (ASG) name
A customer asked: > Good afternoon - we are currently using the [terraform-aws-eks/eks-cluster-managed-workers](https://github.com/gruntwork-io/terraform-aws-eks/blob/master/modules/eks-cluster-managed-workers) module. We use a launch template as well for our node group configuration. I am wondering if there is a way to customize the name of the ASG that it creates. It appears its using the same name as the launch template . I noted there is a name_prefix variable for this module, but wondering if that prefixes all resources including ASG? In the code it looks like it may be only used for EC2 resources actually the provider config for a worker node https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group doesn't even show where you could customize the asg name
I believe this is a limitation of EKS node groups. See [this issue](https://github.com/aws/containers-roadmap/issues/1304). As of July 20, 2021, it looks like EKS with Kubernetes 1.21 supports a new naming convention for ASGs: `eks-<managed-node-group-name>-<uuid>`. See [relevant blog post](https://aws.amazon.com/blogs/containers/amazon-eks-1-21-released/).