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: OS::Heat::AccessPolicy
18 AllowedResources: [ MySQL ]
22 Policies: [ { Ref: ApiAccessPolicy } ]
24 Type: AWS::EC2::Instance
26 OpenStack::ImageBuilder::Elements: [ openstack-db ]
30 userhandle: {Ref: KeystonePasswordHandle}
31 OpenStack::Heat::CFNTools:
35 Fn::GetAtt: [ ApiKey, SecretAccessKey ]
39 InstanceType: {Ref: InstanceType}
40 KeyName: {Ref: KeyName}
41 KeystonePasswordHandle:
42 Type: AWS::CloudFormation:WaitConditionHandle
46 Type: AWS::CloudFormation::WaitCondition
48 Handle: {Ref: KeystonePasswordHandle}
52 Fn::GetAtt: [ MySQL , PrivateIp ]
54 Fn::GetAtt: [ KeystonePassword, Data ]