-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node groups' launch template "$Latest" version producing an infinite always-changing plan #1446
Comments
I think the issue comes from the removal of the ternary operator in the merged PR. "$Latest" string is not the same as the output of https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#latest_version Edit: Not sure. I will be testing this today/tomorrow Edit2: Edit3: But I want to do more tests, I'll let you know when I am more confident Edit 4: Found the root cause:
Before creating a PR, I want to play around this feature, and see if we can delay the rolling update without knowing (or checking it in aws console) in advance the current template version. That could be good. I'll do the PR after testing if this is possible. I will try this by using "update_default_version" field on the launch template. Will start tomorrow |
We have daily automated drift detection of our tf deployments, so this is kind of an annoyingly noisy side effect of our update to the latest aws eks module. Any ETA on the PR being accepted? |
Running into the same issue, each plan will have a change for the templates. |
The v17.1.0 have an issue(terraform-aws-modules/terraform-aws-eks#1446) where each plan will have a change for the templates, this cause our divergence pipeline fail" # Pinned the version until this fix get merged terraform-aws-modules/terraform-aws-eks#1447
The v17.1.0 have an issue(terraform-aws-modules/terraform-aws-eks#1446) where each plan will have a change for the templates, this cause our divergence pipeline fail" Pinned the version until this fix get merged terraform-aws-modules/terraform-aws-eks#1447
* Pin launch_template_version for EKS module The v17.1.0 have an issue(terraform-aws-modules/terraform-aws-eks#1446) where each plan will have a change for the templates, this cause our divergence pipeline fail" Pinned the version until this fix get merged terraform-aws-modules/terraform-aws-eks#1447
launch template always changing plan issue(terraform-aws-modules/terraform-aws-eks#1446) is fixed in version "v17.3.0" Comparing changes v17.1.0 to v17.3.0: terraform-aws-modules/terraform-aws-eks@v17.1.0...v17.3.0
* Update eks module version to "v17.3.0" launch template always changing plan issue(terraform-aws-modules/terraform-aws-eks#1446) is fixed in version "v17.3.0" Comparing changes v17.1.0 to v17.3.0: terraform-aws-modules/terraform-aws-eks@v17.1.0...v17.3.0
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
Terraform will always show a difference in plan related to all the node groups (managed) launch template version and will apply the following change:
Where "2" can be different on each launch template. After the apply, a change is produced in the node groups. If you plan/apply again, same plan appears, in an infinite loop.
Versions
Module: v17.1.0
Terraform:
Reproduction
Easiest way to reproduce the behavior:
Code Snippet to Reproduce
Expected behavior
No launch template update if the node group is not changed.
Actual behavior
Launch template changes version from a static number to $Latest
Additional context
This issue is introduced on version v17.1.0
Probably introduced here #1419
The text was updated successfully, but these errors were encountered: