Lono CloudFormation Framework

Learning to build infrastructure as code is challenging. Lono makes it much easier and more fun. It includes everything you need to develop CloudFormation templates and manage the entire stack lifecycle.

Learn More!

What Is Lono?


Lono is a CloudFormation framework tool that helps you build your CloudFormation templates and manage the entire CloudFormation stack lifecycle. It enables you to craft the templates and takes you all the way to the final infrastructure provisioning step.

Lono was built directly from real-life use cases and asking the right questions. It has been successfully used to manage over hundreds of CloudFormation templates. It automates an otherwise painstakingly manual process of managing your CloudFormation workflow.

Overview

Commands are short and easy to learn


Commands

lono new infra

lono import

lono generate

lono cfn create

lono cfn update

lono cfn preview

lono cfn delete

app/definitions/base/lono.rb

template "single-instance" do
  source "instance"
end

template "instance-and-route53" do
  source "instance"
  variables(
    route53: true
  )
end

templates/instance.yml

  InstanceSecurityGroup:
    Type: AWS::EC2::SecurityGroup
<% if @route53 %>
  DnsRecord:
    Type: AWS::Route53::RecordSet
    Properties:
      HostedZoneName: !Ref 'HostedZoneName'
      Comment: DNS name for my instance.
      Name: !Ref 'Subdomain'
      Type: CNAME
      TTL: '900'
      ResourceRecords:
      - !GetAtt EC2Instance.PublicIp
<% end %>
Outputs:
  InstanceId:
    Description: InstanceId of the EC2 instance

params/base/instance.txt

InstanceType=t2.micro
KeyName=tutorial
App=hello
Role=world
Environment=production

Lono Workflow

  • 1

    Generate Templates

    lono generate

    The first stage of lono is you crafting the CloudFormation templates. Once your templates are written you generate the templates with lono generate.

  • 2

    Specify Parameters

    lono param generate

    You then specify the desired parameters that you want the CloudFormation template to launch with. You do this with env-like params files. The format is easy on the eyes.

  • 3

    Launch the Stack

    lono cfn create

    Lono automatically generates scripts, templates and params files and launches the stack for you. Lono puts it all together and simplifies the ordinarily complicated multiple step manual process down to a single command!

  • Done

Learn More

Quick Start