Skip to content

Cannot list ip addresses of when creating multiple virtual machine resources  #63

@chandru-tkc

Description

@chandru-tkc

Describe the bug
Cannot list ip addresses of when creating multiple virtual machine resources

Expected behavior
Should be able to list the ip addresses of all the vm resources using the following syntax
output "ip" { value = "${join(",",nutanix_virtual_machine.my-machine.*.nutanix_virtual_machine.deployment.*.nic_list_status.0.ip_endpoint_list.0.ip)}" }

If the above interpolation is not possible can we please expose the ip_address attribute from the resources that were created. According to this doc ip_address should be available on a virtual machine data source but trying to access it, fails with
Resource 'data.nutanix_virtual_machine.ips1' does not have attribute 'ip_address' for variable 'data.nutanix_virtual_machine.ips1.ip_address'

Logs
Trying to list the output getting the following error,
nutanix_virtual_machine.deployment’ does not have attribute ‘nic_list_status.0.ip_endpoint_list.0.ip

trying to access ip_address in vm data_source gets following error

Resource 'data.nutanix_virtual_machine.ips1' does not have attribute 'ip_address' for variable 'data.nutanix_virtual_machine.ips1.ip_address'

Versions (please complete the following information):

  • OS - OSX mojave
  • Terraform - 0.11.3
  • Nutanix Cluster - 5.10.2
  • Nutanix Prism Central - 5.10.2
  • 1.0.1

Additional context
Looks like we can't display the ip address when we have multiple nested lists/maps. Can we get the ip_address exposed from the created vm to access?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions