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

<pre><code>   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
</code></pre>

<p>However according to their docs 'bool' type should exist <a href="https://www.terraform.io/docs/configuration/variables.html#bool" rel="nofollow noreferrer">https://www.terraform.io/docs/configuration/variables.html#bool</a></p>

<p>My providers.tf file looks like this</p>

<pre><code>provider "google" {
version = "~&gt; 2.3"
project = "fantastic-cluster"
region = "australia-southeast1" }
</code></pre>

thepolina
<p>Changed 'bool' type to 'string'. Value is still "true". Seems to be working.</p>
