我正在通过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" }
将'bool'类型更改为'string'。价值仍然是“真实的”。似乎工作。