-
Notifications
You must be signed in to change notification settings - Fork 455
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
Access network_interface generates an error #1698
Comments
This isn't directly supported at this time. A possible workaround: TerraformOutput(self, "instance_ip", Fn.lookup(Fn.element(instance.network_interface, 0), "network_ip", "default")) |
TerraformOutput(self, "instance_ip", Fn.lookup(Fn.element(instance.network_interface, 0), "network_ip","default"))
|
TerraformOutput(self, "instance_ip", value=Fn.lookup(Fn.element(instance.network_interface, 0), "network_ip", "default")) Missed explicitly setting the |
The workaround works. |
@jsteinich do we already have another issue that is tracking the work required for this to function without the need for a workaround? |
|
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've 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. |
cdktf & Language Versions
cdktf version: 0.10.1
language: python
Affected Resource(s)
Access instance details
Debug Output
Expected Behavior
Should be able to retrieve the instance ip in the output
Actual Behavior
Exception
Steps to Reproduce
Important Factoids
References
The text was updated successfully, but these errors were encountered: