Get ip address of instance
The example below shows how the IP address of a compute resource can be defined as an output parameter:
resources:
my_instance:
type: OS::Nova::Server
# ...
outputs:
instance_ip:
description: IP address of the deployed compute instance
value: { get_attr: [my_instance, first_address] }
instance_private_ip:
description: Private IP address of the deployed compute instance
value: { get_attr: [my_instance, networks, private, 0] }
i am wondering where does 'first address' come from? i check the document, i did not find this attribute in OS::Nova::Server