1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'HEAT Template - Dedicated MySQL server'
5 Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
9 Description: Use this flavor
16 Type: AWS::EC2::Instance
18 OpenStack::Role: stateful
19 OpenStack::ImageBuilder::Elements: [ rabbitmq-server ]
21 password_handle: {Ref: RabbitMQPasswordHandle}
25 InstanceType: {Ref: InstanceType}
26 KeyName: {Ref: KeyName}
27 UserData: "#!/bin/bash\ntouch /tmp/userdata-finished\necho Userdata finished $(date)\n"
28 RabbitMQPasswordHandle:
29 Type: AWS::CloudFormation::WaitConditionHandle
32 Type: AWS::CloudFormation::WaitCondition
34 Handle: {Ref: RabbitMQPasswordHandle}
38 Fn::GetAtt: [ RabbitMQ , PrivateIp ]
40 Fn::GetAtt: [ RabbitMQPassword, Data ]