Input Variables (Variables)
Learn how to use variables in Terraform.
Variables in Terraform are like in any other programming or scripting language; they hold values. Variables can hold many different types of information to call on later in a configuration file.
Variable definition syntax
Variables are handy HCL constructs that can be defined in a few different ways and in a few different places.
Blocks
Variables can be defined in a block with various arguments in the form:
variable "<variable name>" {
type = <type> ## string, number or bool
<default = <value>>
<description = "">
}
You can find more information about each type of argument assigned to a variable in the ...