Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It sounds like resource-template provides what you are asking for here:

$ heat resource-template OS::Heat::InstanceGroup
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
  InstanceList: {Description: A comma-delimited list of server ip addresses. (Heat
      extension)., Value: '{"Fn::GetAtt": ["InstanceGroup", "InstanceList"]}'}
Parameters:
  AvailabilityZones: {Description: Not Implemented., Type: CommaDelimitedList}
  LaunchConfigurationName: {Description: Name of LaunchConfiguration resource., Type: String}
  LoadBalancerNames: {Description: List of LoadBalancer resources., Type: CommaDelimitedList}
  Size: {Description: Desired number of instances., Type: Number}
  Tags: {Description: Tags to attach to this group., Type: CommaDelimitedList}
Resources:
  InstanceGroup:
    Properties:
      AvailabilityZones:
        Fn::Split:
        - ','
        - {Ref: AvailabilityZones}
      LaunchConfigurationName: {Ref: LaunchConfigurationName}
      LoadBalancerNames:
        Fn::Split:
        - ','
        - {Ref: LoadBalancerNames}
      Size: {Ref: Size}
      Tags:
        Fn::Split:
        - ','
        - {Ref: Tags}
    Type: OS::Heat::InstanceGroup