Skip to content

Error: Resource Not Implemented for google_compute_zones during plan #2538

@kevin-h-dev

Description

@kevin-h-dev

TL;DR

Module Version
using v31.1.0 source GKE: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/v31.1.0/modules/private-cluster-update-variant/cluster.tf

Expected behavior

The module should successfully refresh state and generate a plan by querying available zones using a Data Source.

Observed behavior

Terraform fails during the plan phase with the following error:

│ Error: Resource Not Implemented

│ The combined provider does not implement the requested resource type. This
│ is always an issue in the provider implementation and should be reported to
│ the provider developers.

│ Missing resource type: google_compute_zones

Terraform Configuration

Not found on the code:

provider "google" {}
data "google_compute_zones" "available" {}

Terraform Version

>= 1.4.6

Terraform Provider Versions

Provider Version(s)
hashicorp/google >= 3.65 
hashicorp/helm ~> 3.0.1

Additional information

The error indicates that the module (or a dependency) is attempting to call google_compute_zones as a resource rather than a data source. Since google_compute_zones only exists as a data source in the HashiCorp Google Provider, the provider engine throws a "Not Implemented" error.

We are using internal module google/gke/ which likely wraps the upstream terraform-google-kubernetes-engine module from: source GKE: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/v31.1.0/modules/private-cluster-update-variant/cluster.tf

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions