Parameter

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("AmiId")            # no default, so this is a required parameter
parameter("ImageId", "ami-123") # default is ami-123

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

# long form
parameter("InstanceType" => {
  default: "t2.micro" ,
  description: "instance type" ,
})

Example Outputs

Parameters:
  AmiId:
    Type: String
  ImageId:
    Default: ami-123
    Type: String
  Company:
    Default: boltops
    Description: instance type
    Type: String
  InstanceType:
    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!