Skip to main content

Predefined Variables

Predefined variables provide platform-generated values that can be used when configuring infrastructure in GlobalAI. They help avoid hardcoding values and support reusable, dynamic configurations.

Predefined variables are resolved at runtime and can be selected wherever the platform allows dynamic values to be inserted.

How predefined variables work

Predefined variables are referenced using a placeholder syntax and are resolved automatically when an action or deployment is executed.

You can use predefined variables:

  • As standalone values
  • Combined with static text
  • Combined with other predefined variables

Here's an example of using a predefined variable to generate a unique resource name by appending a random string:

{{set_string}}-test

This produces a randomly generated string followed by -test.

GlobalAI groups predefined variables into categories based on the type of data they provide.

Integrations

Integration variables expose values coming from connected integrations. These variables allow you to reference integration-related identifiers or metadata without hardcoding them into your configuration.

Common use cases

  • Passing integration identifiers into Terraform input values
  • Referencing integration-specific metadata dynamically
  • Reducing manual updates when integration values change

User

User variables provide information related to the user who initiated an action, deployment, or configuration.

Common use cases

  • Associating infrastructure resources with a specific user
  • Supporting auditing and traceability
  • Injecting user-related context into configuration values

Function

Function variables generate dynamic values at runtime. These are typically used to ensure uniqueness or to generate values automatically during execution.

Common use cases

  • Generating unique identifiers
  • Creating non-conflicting resource names
  • Producing dynamic values during deployment

Usage notes

  • Predefined variables are resolved at runtime by the platform
  • They can be combined with static values where supported
  • Available variables and categories may vary depending on the feature or context in which they are used

Now that you know how predefined variables work, you may want to explore these related guides.