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
15 Description: Fetch a mysql dump file from this URL and load it
19 Description: Fetch a mysql config file from this URL to setup local root with bootstrapped database
24 Type: OS::Heat::AccessPolicy
26 AllowedResources: [ MySQL ]
30 Policies: [ { Ref: ApiAccessPolicy } ]
32 Type: AWS::IAM::AccessKey
37 Type: AWS::EC2::Instance
39 OpenStack::ImageBuilder::Elements: [ mysql ]
44 bootstrap_url: {Ref: BootstrapUrl}
45 root_cnf_url: {Ref: BootstrapRootCnfUrl}
50 Fn::GetAtt: [ ApiKey, SecretAccessKey ]
52 name: {Ref: 'AWS::StackName'}
53 region: {Ref: 'AWS::Region'}
59 InstanceType: {Ref: InstanceType}
60 KeyName: {Ref: KeyName}
61 UserData: "#!/bin/bash\ntouch /tmp/userdata-finished\necho Userdata finished $(date)\n"
64 Fn::GetAtt: [ MySQL , PrivateIp ]