-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: splatting with computed values is computed [GH-2744] #2788
Conversation
❤️ nice! cc @thegedge |
LGTM |
terraform: splatting with computed values is computed [GH-2744]
Hi @mitchellh: Unfortunately this PR seems to have introduced unexpected behavior that is being described in #3885, #3449, and elsewhere. Consider this simple example:
With both
Good so far. Now we increment
Here we can see:
This is even though the value of I've tested this same scenario after rolling back the changes made in this PR, and this time I get the expected result from
Of course, this reintroduces the bug from #2744, which you can see with this same example if we destroy and start over with an initial
In this particular case the Not sure where to go from here. In theory, reevaluating dependent values during the Oh, what a difference 3 lines of code makes! |
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. |
Fixes #2744
If any value in a splat (multi-resource variable access) is computed, then the whole value should be computed.