mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-24 11:02:03 -04:00
website: Add complex type example to variables.html
This commit is contained in:
committed by
Nick Fagerlund
parent
67e742fa29
commit
655bbfdf28
@@ -46,6 +46,21 @@ variable "availability_zone_names" {
|
||||
type = list(string)
|
||||
default = ["us-west-1a"]
|
||||
}
|
||||
|
||||
variable "docker_ports" {
|
||||
type = list(object({
|
||||
internal = number
|
||||
external = number
|
||||
protocol = string
|
||||
}))
|
||||
default = [
|
||||
{
|
||||
internal = 8300
|
||||
external = 8300
|
||||
protocol = "tcp"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
The label after the `variable` keyword is a name for the variable, which must
|
||||
|
||||
Reference in New Issue
Block a user