nomad_variable

Creates and manages a variable, including it's contents, within a Nomad cluster.

Example Usage

Creating a variable in the default namespace:

resource "nomad_variable" "example" {
  path  = "some/path/of/your/choosing"
  items = {
    example_key = "example_value"
  }
}

Creating a variable in a custom namespace:

resource "nomad_namespace" "example" {
  name        = "example"
  description = "Example namespace."
}

resource "nomad_variable" "example" {
  path      = "some/path/of/your/choosing"
  namespace = nomad_namespace.example.name
  items     = {
    example_key = "example_value"
  }
}

Argument Reference