From 13d1b50d8a3fe9ec7a1abc49a4fb98c7f534670c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Ruiz=20Jim=C3=A9nez?= Date: Tue, 11 Aug 2020 16:33:02 +0200 Subject: [PATCH] Remove double-quoted in variable type (#9747) The type parameter in a variable definition can't be double-quoted as it is a primitive type keyword or a complex type constructor --- website/pages/guides/hcl/variables.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/pages/guides/hcl/variables.mdx b/website/pages/guides/hcl/variables.mdx index 51af7ec35..ac0b1e760 100644 --- a/website/pages/guides/hcl/variables.mdx +++ b/website/pages/guides/hcl/variables.mdx @@ -216,7 +216,7 @@ Lists are defined either explicitly or implicitly variable "cidrs" { default = [] } # explicitly -variable "cidrs" { type = "list" } +variable "cidrs" { type = list } ``` You can specify lists in a `variables.pkrvars.hcl` file: @@ -233,7 +233,7 @@ support for the `us-west-2` region as well: ```hcl variable "amis" { - type = "map" + type = map default = { "us-east-1" = "ami-b374d5a5" "us-west-2" = "ami-4b32be2b" @@ -278,7 +278,7 @@ variable definitions: ```hcl variable "region" {} variable "amis" { - type = "map" + type = map } ```