website: Add complex type example to variables.html

This commit is contained in:
Nick Fagerlund 2019-09-13 12:23:42 -07:00 committed by Nick Fagerlund
parent 67e742fa29
commit 655bbfdf28
1 changed files with 15 additions and 0 deletions

View File

@ -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