Does Heat support Parent-Child Templates ?
I have a requirement to call a Heat Template ( Child ) from Another Heat Template ( Parent ).
For the following I am using the below in template:
"Resources" : {
"myStackWithParams" : {
"Type" : "AWS::CloudFormation::Stack",
"Properties" : {
"TemplateURL" : "/home/amdocs/Documents/RunUnixCommandHeat.template" // Localpath
}
},
In above case getting error i.e IOError: Invalid URL scheme. I tries with file:///home/amdocs/Documents/RunUnixCommandHeat.template as TemplateURL. Getting same error.
Another thing that I tried is access a standard template of Amazon:
"Resources" : {
"myStackWithParams" : {
"Type" : "AWS::CloudFormation::Stack",
"Properties" : {
"TemplateURL" : "https://github.com/openstack/heat-templates/blob/master/cfn/F17/WordPress_Single_Instance_Rackspace_Cloud_Servers.template"
}
}
This also not working.
As per the link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html suggested the template must be stored on an Amazon S3 bucket.
Is there any way I can connect to template other than the Amazon one. Can I specify a local heat template file name, what is the url should specified in TemplateURL parameter?
Any tips or suggestion is highly appreciated.
Thanks in Advance for the help.