DRY: Reusable Templates
Lono design allows you to reuse CloudFormation templates. A key is the separation of config and template code in a structured and organized way.
Here’s an example config structure:
config/blueprints └── demo └── params ├── dev.env └── prod.env
Notice how there are different
prod config files. This structure allows you to create different environments with the same CloudFormation template. Learn more: Layering.
The CloudFormation code itself lives in the blueprints folder.
app/blueprints └── demo
With this structure, it DRYs up your code by allowing you to reuse the same CloudFormation templates.