Ask Your Question

Revision history [back]

In the child file:

outputs:
  ip_address:
    value: {get_attr: [my_instance, networks, {get_param: network_id}, 0]}

Then in the parent:

outputs:
  child_1_ip_address:
    value: {get_attr: [my_instance1, ip_address]}

&c.

BTW you can't call both of your resources my_instance1. One of them should be called my_instance2.