-
-
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
fix: Use splat syntax for cluster name to avoid (known after apply)
in managed node groups
#868
fix: Use splat syntax for cluster name to avoid (known after apply)
in managed node groups
#868
Conversation
count
in null_data_source
to avoid reading only during the applycount
in null_data_source
to avoid reading only during the apply phase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works. And fixes the issues 👍
I didn't know that TF 0.12 supported depends_on for variables. I thought this hadn't been implemented yet and the bug traffic I found had it potentially scheduled for 0.13. I would have gone that route if I'd known it existed when first implementing this module 😉
@dpiddockcmp So should we go with #867 or continue on this PR ? |
count
in null_data_source
to avoid reading only during the apply phase(known after apply)
in managed node groups
a996b96
to
2ad1999
Compare
Let's stick with this. It sounds to work without notable change. |
(known after apply)
in managed node groups(known after apply)
in managed node groups
Just wanted to mention that I find the approach in #867 to be much more explicit and easier to understand. While it is true that the PR consists of more notable changes to the make-up of the module, it might be preferred as it relies on less "magic" than the approach here. That being said, I have tested the changes in here and can confirm that they address the issues at hand, but I am unsure as to why that is exactly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does work and with minimal changes. Ignoring the confusion over why it works and breaking my mental model of Terraform 😁
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
After some tests, I've noticed that all inputs of the
null_data_source
are already know.The unknown values are computed one like
random
,id
, etc. and those will be read only during apply unless we remove thecount
. In that way Terraform will always read datas before apply and avoid the(known after apply)
issue. Sounds like a Terraform magic again 🤷♂️Resolves #843 #862
Checklist