The following page lists directives related to variables.

Watcher constant

<walkthrough-watcher-constant key="VARIABLE_NAME" value="VARIABLE_VALUE"></walkthrough-watcher-constant>

Creates and defines variables by setting a key-value pair. After setting the key and value parameters, you can reference the variable in your tutorial using double braces as follows: {{VARIABLE_NAME}}.


Parameters Description
key Watcher key. Keys are case insensitive, and don't distinguish between dashes (-) and underscores (_).
value Watcher value.

There are built-in variables that reference Google Cloud properties:

Key Type Description
project-id String The user's current project ID.
project-name String The user's project name.