<p>I'm running Kubernetes on GCP and doing changes via Terraform v0.11.14
When running <code>terraform plan</code> I'm getting the error messages here</p>
<pre><code>Error: Error refreshing state: 2 errors occurred:
        * module.cls-xxx-us-central1-a-dev.helm_release.cert-manager: 1 error occurred:
        * module.cls-xxx-us-central1-a-dev.helm_release.cert-manager: helm_release.cert-manager: error installing: the server could not find the requested resource


        * module.cls-xxx-us-central1-a-dev.helm_release.nginx: 1 error occurred:
        * module.cls-xxx-us-central1-a-dev.helm_release.nginx: helm_release.nginx: error installing: the server could not find the requested resource
</code></pre>
<p>Here's a copy of my <code>helm.tf</code></p>
<pre><code>resource &quot;helm_release&quot; &quot;nginx&quot; {
  depends_on = [&quot;google_container_node_pool.tally-np&quot;]
  name       = &quot;ingress-nginx&quot;
  chart      = &quot;ingress-nginx/ingress-nginx&quot;
  namespace  = &quot;kube-system&quot;
}

resource &quot;helm_release&quot; &quot;cert-manager&quot; {
  depends_on = [&quot;google_container_node_pool.tally-np&quot;]
  name       = &quot;cert-manager&quot;
  chart      = &quot;stable/cert-manager&quot;
  namespace  = &quot;kube-system&quot;

  set {
    name  = &quot;ingressShim.defaultIssuerName&quot;
    value = &quot;letsencrypt-production&quot;
  }

  set {
    name  = &quot;ingressShim.defaultIssuerKind&quot;
    value = &quot;ClusterIssuer&quot;
  }

  provisioner &quot;local-exec&quot; {
    command = &quot;gcloud container clusters get-credentials ${var.cluster_name} --zone ${google_container_cluster.cluster.zone} &amp;&amp; kubectl create -f ${path.module}/letsencrypt-prod.yaml&quot;
  }
}
</code></pre>
<p>I've read that Helm deprecated most of the old chart repos so I tried adding the repositories and installing the charts locally under the namespace kube-system but so far the issue is still persisting.</p>
<p>Here's the list of versions for Terraform and it's providers
Terraform v0.11.14</p>
<ul>
<li>provider.google v2.17.0</li>
<li>provider.helm v0.10.2</li>
<li>provider.kubernetes v1.9.0</li>
<li>provider.random v2.2.1</li>
</ul>

rax
<p>As the community is moving towards Helm v3, the maintainers have depreciated the old helm model where we had a single mono repo called <code>stable</code>. The new model is like each product having its own repo. On November 13, 2020 the stable and incubator charts repository reached the end of development and became archives.</p>
<p>The archived charts are now hosted at a new URL. To continue using the archived charts, you will have to make some tweaks in your helm workflow.</p>
<p>Sample workaround:</p>
<pre><code>helm repo add new-stable https://charts.helm.sh/stable
helm fetch new-stable/prometheus-operator
</code></pre>
