-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Terraform shows false changes in user_data #3227
Comments
Why not use the module as it's designed - this is far from what we provide in this module so we won't be able to troubleshoot |
Yep, we're using the module not the way as it's designed, only the "user_data" submodule is needed. Can it be considered as the "wrong" way of using the module? |
Hi @bryantbiggs @anzinchenko89, I am also facing exact same issue, Terraform always detect the user_data drift even if the changes in a repository were applied to the resources not related to user_data, launch_template, eks node_groups. @anzinchenko89, please let me know if you got any fix for this! Thanks! |
Hi @prajwalakhuj-hcx, instead of using the module "user_data", I put the user_data templatefile directly in the launch template, like this
I assume that datasource So, having removed the datasource |
Description
We are using EKS managed node group and AL2023. Durning the repository TF code changes that are not even related to the node groups and user_data, terraform always shows as user_data is being updated in place, but nothing has changed and it makes it appear like the Terraform is going to update the node group but it's false changes.
Versions
Module version [Required]:
20.30.1
Terraform version:
1.9.4
Provider version(s):
Reproduction Code [Required]
The module
node_group
is located within the our local repo and contains the following:Steps to reproduce the behavior:
Even after adding a new TF resources or changing any different the piece of code not related to the launch_template, user_data, it causes the "changes" in user_data
After applying this plan, the launch template has not been updating and latest version is being used still the same (in this particular case launch template version remains as 24)
Expected behavior
After adding changes not related to user_data, launch_template, node_groups the terraform shouldn't consider the user_data to be updated-in place
Actual behavior
Terraform always detect the user_data drift even if the changes in a repository were applied to the resources not related to user_data, launch_template, eks node_groups.
The text was updated successfully, but these errors were encountered: