# cat > instance_floatingip_create.yaml  heat_template_version: 2015-10-15 description: A load-balancer server parameters:   image:     type: string     description: Image used for servers     default: ${IMAGE_ID}   flavor:     type: string     description: flavor used by the servers     default: ${FLAVOR_ID}   networks:     type: string     description: as_private_net     default: ${Private_NET_ID}   subnet:     type: string     description: private_subnet     default: ${SUBNET_ID}   public_net_id:     type: string     description: public_net_id     default: ${Public_ID}
  resources:   server:     type: OS::Nova::Server     properties:       flavor: {get_param: flavor}       image: {get_param: image}       networks:         - port: { get_resource: public_port } 
    public_port:     type: OS::Neutron::Port     properties:       network_id: { get_param: networks }       fixed_ips:       - subnet_id: { get_param: subnet }
    floating_ip:     type: OS::Neutron::FloatingIP     properties:       floating_network_id: { get_param: public_net_id }       port_id: { get_resource: public_port }
  outputs:   server_ip:     description: IP Address of the load-balanced server.     value: { get_attr: [server, first_address] }   floating_ip:     description: assigned public ip     value: { get_attr: [ floating_ip, floating_ip_address ] }
  
        
         
        
        
        
        
        
        
        
         
     |