Skip to main content
Version: v0.6

Variables

There are several levels of variables in Walrus:

  • Environment Variables: Applied to a specific environment.
  • Project Variables: Applied to a specific project.
  • Global Variables: Can be applied to all projects.

When variables with the same name exist at different levels, the value of the variable is used according to the following priority: Environment > Project > Global.

View Variable List

Global Variables

  1. Click on the Operations menu in the left navigation bar.
  2. Click on the Global Variables tab to manage global variables.

var-global-list

Project Variables

  1. Click on Applications in the left navigation bar.
  2. Select the project using the project dropdown button at the top breadcrumb.
  3. Click on the Variables tab to manage the variables under this project.

var-project-list

Environment Variables

  1. Click on Applications in the left navigation bar.
  2. Select the project using the project dropdown button at the top breadcrumb.
  3. Under the Environments tab, click on the name of an environment to enter the environment view.
  4. Click on the Variables tab to manage the variables under this environment.

var-environment-list

Create, Update Variables

  1. Enter the variable list page.
  2. Click on the 【New Variable】button to create a variable.
  3. Select Sensitive. If this option is enabled, the value of the variable cannot be seen after it is saved.

var-create

  1. Click on the Edit operation button in the variable list to update the variable.

var-edit

Use Variables

When creating or editing a resource, input ${var.variable_name} in the input box in the template configuration to use the corresponding variable.

var-reference

Delete Variables

  1. Enter the variable list page.
  2. Select the variable to be deleted and click on the Delete button. Confirm to delete.