Section

General way to add a section to the generated CloudFormation template.

The section method provides a general way to add a section to the CloudFormation template. This is useful in case there’s a future CloudFormation section that the lono DSL does not yet support.

Example Snippets

section("Resources",
  "SnsTopic" => {
    Type: "AWS::SNS::Topic",
    Properties: {
      Description: "my desc",
      DisplayName: "my name",
    }
  }
)

Example Outputs

Resources:
  SnsTopic:
    Type: AWS::SNS::Topic
    Properties:
      DisplayName: my name

Back to DSL Basics Docs.