The parameter method maps to the CloudFormation Template Anatomy Parameters section.

Example Snippets

There are 3 forms for conditions. Here are example snippets:

# short form
parameter(:ami_id)            # no default, so this is a required parameter
parameter(:image_id, "ami-123") # default is ami-123

# medium form
parameter(:company, default: "boltops", description: "instance type")

# long form
parameter(instance_type: {
  default: "t2.micro" ,
  description: "instance type" ,

Example Outputs

    Type: String
    Default: ami-123
    Type: String
    Default: boltops
    Description: instance type
    Type: String
    Default: t2.micro
    Description: instance type
    Type: String

Back to DSL List Docs.

Pro tip: Use the <- and -> arrow keys to move back and forward.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!