You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The submodules to create the node groups do not have the prefix_seperator variable passed through
The prefix_seperator is not passed through to the submodules (e.g. self-managed-node-group) and all the resources are hardcoded to use - as a separator. This is causing many of our resources to be replaced (ASGs, Launch Templates, etc.) to be replaced as the names/name_prefixes change from using our now non default separator ("") to "-".
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
The submodules to create the node groups do not have the
prefix_seperator
variable passed throughThe
prefix_seperator
is not passed through to the submodules (e.g. self-managed-node-group) and all the resources are hardcoded to use-
as a separator. This is causing many of our resources to be replaced (ASGs, Launch Templates, etc.) to be replaced as the names/name_prefixes change from using our now non default separator ("") to "-".ASG source: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/self-managed-node-group/main.tf#L264
Launch Template source: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/self-managed-node-group/main.tf#L51
Proposed fix: reuse the
prefix_separator
variable from the root module in each of the sub modules to replace the-
in each resources name_prefix. Similar to the security group from the root module - https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/main.tf#L111.This makes our migration to v18.0 extremely difficult as by default all our worker nodes would be replaced.
Example from Terraform Plan:
The text was updated successfully, but these errors were encountered: