-
-
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
Changing tags causes node groups to be replaced. #843
Comments
Yes, this is unfortunate behaviour with how everything was stitched together to ensure dependency ordering in the one-shot module. From my understanding of how Terraform works, this is roughly the reason behind why things gets recreated:
I don't think there's much we can do design-wise in the module to work around this particular issue at this time. Terraform 0.13 is scheduled to get a bunch of dependency improvements around modules: hashicorp/terraform#17101 . Work arounds:
|
Thanks for getting back to me on this. The tags aren't an giant issue for me quite yet, but if they become so (like we actually start tacking expenses to tags), it looks like I could remove the node group statements from the module input and define one or more aws_eks_node_groups separately, and import the existing node groups in to them. |
After some tests, I ended up with this possible fix #868. |
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. |
I have issues
I'm submitting a...
What is the current behavior?
When I change the values of tags, a plan shows that all node groups need to be replaced:
If this is a bug, how to reproduce? Please include a code sample if relevant.
Create a cluster with node groups, and then change a base level tag.
What's the expected behavior?
Tags are updated in place.
Are you able to fix this problem and submit a PR? Link here if you have already.
No.
Environment details
Any other relevant info
The text was updated successfully, but these errors were encountered: