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
This commit is contained in:
Javier Ruiz Jiménez 2020-08-11 16:33:02 +02:00 committed by GitHub
parent 2ffbe8240f
commit 13d1b50d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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