Comment on page
You put CloudFormation template files for stacks in the templates directory or its subdirectories.
For each stack, you specify the template file to use with the
templateproperty. It accepts a relative file path to the template file in the templates directory.
If you don't specify the template, Takomo looks for a template file using the relative file path to the current stack configuration file from the stacks directory.
Takomo supports both of the standard CloudFormation template file formats, i.e., JSON and YAML.
Say, we have the following project.
│ └─ application.yml
In application.yml stack configuration file you can define the
templateproperty like so:
If you would omit the
templateproperty, Takomo would fallback to the default behaviour and look for a template file by name application.yml from the templates directory.
You can also inline the template body in a stack configuration file.
By default, Takomo processes each template file with Handlebars templating engine. You can turn off this dynamic template processing by providing the template configuration with an object with two properties:
dynamic. The former specifies the relative file path to the template file in the templates directory., and the latter is an optional boolean to enable or disable dynamic processing.
Use the object notation to disable dynamic template:
templateproperty can be defined only in stack configuration files.
templateproperty must satisfy these requirements:
- Must be a string or an object