Lono blueprints encapsulate the code used to build CloudFormation templates and infrastructure resources. Essentially, Lono blueprints packaged up the template in a organized and reusable way, keeping the code DRY. Blueprints are what you’ll mostly work with and can live in
The most basic blueprint structure simply has one file.
app/blueprints/demo └── template.rb
template.rb is what you’ll work with mostly.
Hopefully, that gives you a basic idea of a lono blueprint structure.
To create a new blueprint you can use:
lono new blueprint demo
This creates a
app/blueprints/demo folder in your lono project with a starter structure.
To list the project’s blueprints:
Blueprints can also be loaded with the Lonofile. Example:
blueprint "ec2", git: "boltopspro/ec2-blueprint" blueprint "vpc", git: "boltopspro/vpc-blueprint"