»Variables in waypoint.hcl

The waypoint.hcl file uses HCL which is able to reference predefined variables. This section will document the list of available variables within the waypoint.hcl. Variable documentation pages use placement tables to document where variables are valid.

»Using Variables

Variable usage is similar to many mainstream programming languages such as Javascript, Ruby, or Python. Variables can be used directly, such as in the example below where path.app is assigned to dockerfile.

dockerfile = path.app

Variables can also be interpolated in strings to concatenate multiple values together:

dockerfile = "${path.app}/Dockerfile"

»Custom Variables

Waypoint currently only supports predefined variables plus the dynamic variables introduced by plugins, such as artifact. A future version of Waypoint will enable a mechanism for custom variables that can be populated by user input.