From 655bbfdf287a98922fc65beeee4b489cdc37ca39 Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Fri, 13 Sep 2019 12:23:42 -0700 Subject: [PATCH] website: Add complex type example to variables.html --- website/docs/configuration/variables.html.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/docs/configuration/variables.html.md b/website/docs/configuration/variables.html.md index 781c88b500..2c02c32639 100644 --- a/website/docs/configuration/variables.html.md +++ b/website/docs/configuration/variables.html.md @@ -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