HeatTemplateFormatVersion: '2012-12-12'
Description: Create Floating IP
Outputs:
  FloatingIpId:
    Description: Floating IP ID
    Value: {Ref: Floating-IP}
Parameters:
  NetworkId:
    Description: NetworkId
    Type: String
  InstanceId:
    Description: Id of the instance to attach to.
    Type: String
  IpAddress:
    Description: The floating ip address you would like to attach
    Type: String
  FloatingIpId:
    Description: The floating ip id
    Type: String
  PortId:
    Description: Port Id to attach to.
    Type: String
Resources:
  Floating-IP:
    Properties:
      floating_ip:
        Ref: FloatingIpId
      port_id:
        Ref: PortId
    Type: OS::Nova::FloatingIPAssociation

HeatTemplateFormatVersion: '2012-12-12'
Description: Create Floating IP
Outputs:
  FloatingIpId:
    Description: Floating IP ID
    Value: {Ref: Floating-IP}
Parameters:
  NetworkId:
    Description: NetworkId
    Type: String
  InstanceId:
    Description: Id of the instance to attach to.
    Type: String
  IpAddress:
    Description: The floating ip address you would like to attach
    Type: String
  FloatingIpId:
    Description: The floating ip id
    Type: String
  PortId:
    Description: Port Id to attach to.
    Type: String
Resources:
  Floating-IP:
    Properties:
      floating_ip:
        Ref: FloatingIpId
      port_id:
        Ref: PortId
    Type: OS::Neutron::FloatingIPAssociation

Use the right resource type
Use the right resource type
