Variables
Variables used in expressions have a scope and an identifier. The scope defines the source of the variable, and the identifier is the name of the variable within that scope.
Terrabuild supports the following variable scopes:
terrabuildcontains predefined values supplied by Terrabuild.varcontains workspace variables declared inWORKSPACE.localcontains values declared inWORKSPACEorPROJECT.projectcontains project properties from the project block.
Here are some variable reference examples:
terrabuild.branch_or_tag- Access the current Git branch or tagvar.config- Access a workspace variable namedconfiglocal.config- Access a local value namedconfigproject.api.version- Access the version hash of the project identified asapi