variables

package
v0.22.9-2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Variables

func Variables(ctx *hcl.EvalContext, body hcl.Body) (hcl.Body, hcl.Diagnostics)

Variables is a custom block type that allows the definition of custom variables within the "variables" block. These variables can be referenced globally through the "var" object. Additionally, variables can reference each other within the "variables" block itself.

Example:

variables {
  var "foo" {
    value = "bar"
  }
}

block "example" {
  foo = var.foo.value
}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL