when trying to remove a worker_groups_launch_template can't apply, getting the following:
Error: Cycle: module.eks.random_pet.workers_launch_template[2], module.eks.random_pet.workers_launch_template[2] (destroy deposed 2ff3956f), module.eks.aws_launch_template.workers_launch_template[3] (destroy)
should be able to remove a worker group
I have the same issue, but this is not the suggested way to manage old worker groups:
https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/faq.md#how-do-i-safely-remove-old-worker-groups
The documentation suggest to set min/max node pool size to 0 and just leave the empty node pool.
Anyway I do agree that node group deletion handling would be a nice feature, but from my (limited) knowledge of the project I guess that the fact that worker_groups_launch_template is handled as a list (shifting index problem) is blocking the implementation of the feature.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity since being marked as stale.
Most helpful comment
I have the same issue, but this is not the suggested way to manage old worker groups:
https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/faq.md#how-do-i-safely-remove-old-worker-groups
The documentation suggest to set min/max node pool size to 0 and just leave the empty node pool.
Anyway I do agree that node group deletion handling would be a nice feature, but from my (limited) knowledge of the project I guess that the fact that
worker_groups_launch_templateis handled as a list (shifting index problem) is blocking the implementation of the feature.