0
votes

I'm launching a GKE private cluster via terraform template and getting the following error

   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

However according to their docs 'bool' type should exist https://www.terraform.io/docs/configuration/variables.html#bool

My providers.tf file looks like this

provider "google" {
version = "~> 2.3"
project = "fantastic-cluster"
region = "australia-southeast1" }
1
bool is not a valid type until 0.12. Note the disclaimer at the top of the doc.Matt Schuchard
yeah, checked my terraform version and it's actually not the latest: terraform -v Terraform v0.11.13thepolina

1 Answers

1
votes

Changed 'bool' type to 'string'. Value is still "true". Seems to be working.