Open anzinchenko89 opened 21 hours ago
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? Actually such kind of the module usage didn't cause any issues till the EKS upgrade to 1.30 and migrating to AL2023 (we did that in September, with the aws provider version 5.66.0). It's hardly likely that moving to the new AMI could have led to the "weird" terraform behavior, but "something" forces the terraform to think that content of user_data has been modified, but it hasn't.
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):
provider registry.terraform.io/hashicorp/aws v5.78.0
provider registry.terraform.io/hashicorp/cloudinit v2.3.5
provider registry.terraform.io/hashicorp/local v2.5.2
provider registry.terraform.io/hashicorp/null v3.2.3
provider registry.terraform.io/hashicorp/time v0.12.1
provider registry.terraform.io/hashicorp/tls v4.0.6
provider registry.terraform.io/hashicorp/vault v4.5.0
provider registry.terraform.io/integrations/github v6.4.0
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.