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
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.
[+] ✋ I have searched the open/closed issues and my issue is not listed.
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
# module.cluster.module.nodegroup["default"].aws_eks_node_group.workers will be updated in-place
~ resource "aws_eks_node_group" "workers" {
id = "###########"
tags = {
"Name" = "eks_cluster.net"
"k8s.io/cluster-autoscaler/eks_cluster" = "owned"
"k8s.io/cluster-autoscaler/enabled" = "true"
}
~ launch_template {
id = "lt-085883b0718ea3681"
name = "default.eks_cluster.net-2024060614060058700000002a"
~ version = "24" -> (known after apply)
}
# (3 unchanged blocks hidden)
}
~ resource "aws_launch_template" "workers" {
id = "lt-085883b0718ea3681"
~ latest_version = 24 -> (known after apply)
name = "default.eks_cluster.net-2024060614060058700000002a"
tags = {
"Name" = "default.eks_cluster.net"
}
~ user_data = "Q29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSJNSU1FQk9VTkRBUlkiCk1JTUUtVmVyc2lvbjogMS4wDQoNCi0tTUlNRUJPVU5EQVJZDQpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA3Yml0DQpDb250ZW50LVR5cGU6IHRleHQveC..........
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:
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):
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: