-
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
Unable to access list of "list of computed values" before terraform has run. #3679
Comments
+1, now that #2157 fixed our issue with grabbing lists of private ips from ENIs this issue has been a pain for us with initializing our cluster for the first time as well. |
The referenced commit fixes the issue in my case. Really not sure what is the impact of this on other parts of terraform though... |
Hi folks! The core of this issue is that the splat operator only has defined behavior for collecting lists of resources that were created using the We'd definitely like to get the splat operator to fully support structured attributes, but today it does not, which is why you're getting the weird behavior described here. Just reviewed our splat operator documentation and it looks pretty thin - I will bolster that in a PR linked back here. |
Agreed this is fixed in my tests! |
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 believe this is a bug in #2157. Given:
I try the following:
This works fine once I've already done an initial
terraform apply
. But if I attempt toterraform apply
for the first time, I receive the error:Replacing
aws_network_interface.zk_eni_pool.*.private_ips
with the following both work fine:aws_network_interface.zk_eni_pool.0.private_ips
, oraws_network_interface.zk_eni_pool.0.subnet_id
Therefore, I interpret the root problem is that Terraform has a bug where it cannot access a list of "list of computed values". Thanks for your input.
The text was updated successfully, but these errors were encountered: