Terraform Error'bool'不是有效类型

问题描述 投票:0回答:1

我正在通过terraform模板启动GKE私有集群并收到以下错误

   Error: Error loading ~/projects/tf-gke/variables.tf: Variable 'private_cluster_config' type must be one of [string, map, list] - 'bool' is not a valid type

但是根据他们的文件'bool'类型应该存在https://www.terraform.io/docs/configuration/variables.html#bool

我的providers.tf文件看起来像这样

provider "google" {
version = "~> 2.3"
project = "fantastic-cluster"
region = "australia-southeast1" }
kubernetes google-cloud-platform terraform
1个回答
0
投票

将'bool'类型更改为'string'。价值仍然是“真实的”。似乎工作。

© www.soinside.com 2019 - 2024. All rights reserved.