website: Add complex type example to variables.html
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue