📝 Edit page
➕ Add page
Types
From Types in the docs.
Types
Basic
string: a sequence of Unicode characters representing some text, like"hello".number: a numeric value. The number type can represent both whole numbers like15and fractional values like6.283185.bool: a boolean value, eithertrueorfalse.boolvalues can be used in conditional logic.
Structures
list<TYPE>a sequence of values, like["us-west-1a", "us-west-1c"]. Elements in a list or tuple are identified by consecutive whole numbers, starting with zero.tuple([<TYPE>, ...])- same aslistbut frozen.set(<TYPE>)map<TYPE, TYPE>(orobject): key-value pairs.{name = "Mabel", age = 52}.object({<ATTR NAME> = <TYPE>, ... })
e.g.
variable "my_var" {
type = list(string)
default = ["abc"]
}
Special
null- a value that represents absence or omission.