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:
parent
2ffbe8240f
commit
13d1b50d8a
@ -216,7 +216,7 @@ Lists are defined either explicitly or implicitly
|
|||||||
variable "cidrs" { default = [] }
|
variable "cidrs" { default = [] }
|
||||||
|
|
||||||
# explicitly
|
# explicitly
|
||||||
variable "cidrs" { type = "list" }
|
variable "cidrs" { type = list }
|
||||||
```
|
```
|
||||||
|
|
||||||
You can specify lists in a `variables.pkrvars.hcl` file:
|
You can specify lists in a `variables.pkrvars.hcl` file:
|
||||||
@ -233,7 +233,7 @@ support for the `us-west-2` region as well:
|
|||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
variable "amis" {
|
variable "amis" {
|
||||||
type = "map"
|
type = map
|
||||||
default = {
|
default = {
|
||||||
"us-east-1" = "ami-b374d5a5"
|
"us-east-1" = "ami-b374d5a5"
|
||||||
"us-west-2" = "ami-4b32be2b"
|
"us-west-2" = "ami-4b32be2b"
|
||||||
@ -278,7 +278,7 @@ variable definitions:
|
|||||||
```hcl
|
```hcl
|
||||||
variable "region" {}
|
variable "region" {}
|
||||||
variable "amis" {
|
variable "amis" {
|
||||||
type = "map"
|
type = map
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user