Variables

Define global variables, reuse them across test cases.

Variable blocks can be used to specify required inputs for your tests.

Use variable block to define a variable:

variable "my_variable" { }

Variables can also have default values associated with them:

variable "my_variable" {
  default = "some_value"
}

Default values can be overridden with shell environment when running Bluebook CLI. Prefix variable name with BVAR_ to override default value.

$ BVAR_my_variable=other_value bluebook run

Variables can be accessed using interpolation syntax in BCL files:

"${var.my_variable}"