terraform-provider-nutanix
terraform-provider-nutanix copied to clipboard
data nutanix_virtual_machine doesn't return ip_address attribute
Nutanix Terraform provider 1.2.1
In the documentation (https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/data-sources/virtual_machine), it is documented the ip_address attribute is returned. But this attribute isn't returned
nutanix@AUTOMATION-01:~/terraform/flow$ terraform apply -auto-approve ╷ │ Error: Unsupported attribute │ │ on main.tf line 254, in resource "local_file" "hosts": │ 254: vm-web = data.nutanix_virtual_machine.vm_web_metadata.ip_address │ │ This object has no argument, nested block, or exported attribute named "ip_address".
Workaround would be data.nutanix_virtual_machine.vm_web_metadata.nic_list[0].ip_endpoint_list[0].ip
Hey this could be documentation issue. https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/data-sources/virtual_machine#ip_address