For the complete documentation index, see llms.txt. This page is also available as Markdown.

Locals

A local value assigns a name to an expression, so you can use the name multiple times within a module instead of repeating the expression.

When you define locals in Brainboard, they are added to the locals.tf file and in the same block locals

hand-point-right

Creating a new local

  1. Click the Locals icon available in the right panel.

  2. Then, click the + icon to add/import variables. It opens the Create local modal.

  3. Specify the Name, Description and Value of the local.

If you are using a complex expression in the value field, you need to quote it, as you can mix strings, functions, and variables.

Last updated