variables
Description
Defines variables that are used in the context of the blueprint. All variables must be provided by the environment or have a default value.
The following variable names are reserved:
count
_tuono_*
Required Properties
type (string)
The type of the variable. If type is secret, the value must be a Tuono managed secret URI.
Allowed Values:
integer
string
secret
Optional Properties
Default value for this variable.
description (string)
A description of this variable.
max (integer)
The maximum supported value of this variable. Only valid if the variable is an integer.
This property cannot be specified with:
min (integer)
The minimum supported value of this variable. Only valid if the variable is an integer.
This property cannot be specified with:
preset (boolean)
If true
, this variable is controlled by a preset. Preset variables cannot be set directly in a blueprint, but can have a default value (unless the variable is a secret). The default is false
.
The default value if not specified is false
.
regex (string)
A regular expression this variable must meet. Only valid if the variable is a string type.
This property cannot be specified with:
Common Properties
Examples
A variable with a default value:
variables:
num_cores:
default: 2
description: The number of CPU cores for this VM.
max: 8
min: 1
type: integer
Last updated
Was this helpful?