yandex-cloud / terraform-provider-yandex

Terraform Yandex provider
https://www.terraform.io/docs/providers/yandex/
Mozilla Public License 2.0
208 stars 113 forks source link

Failed to instantiate provider "registry.terraform.io/yandex-cloud/yandex" to Error obtain schema: Incompatible API version with plugin. Plugin version: 6, Client versions: [5] #442

Open kkkk4000 opened 3 months ago

kkkk4000 commented 3 months ago
terraform {
  required_providers {
    yandex = {
      source  = "yandex-cloud/yandex"
      version = "~> 0.100.0"
    }
  }
}

Summary: I'm encountering an issue while trying to use the Yandex Cloud provider (v0.100.0) with Terraform (v0.14.8). The error message suggests an incompatibility between the plugin and client API versions.

Error Message:

Failed to instantiate provider "registry.terraform.io/yandex-cloud/yandex" to obtain schema: Incompatible API version with plugin. Plugin version: 6, Client versions: [5]

Details:

Terraform Version: 0.14.8 Yandex Cloud Provider Version: 0.100.0 Error Occurs During: terraform plan command Error Details: Failed to instantiate provider "registry.terraform.io/yandex-cloud/yandex" to obtain schema: Incompatible API version with plugin. Plugin version: 6, Client versions: [5]

Questions:

Is this issue related to the version incompatibility between Terraform (v0.14.8) and the Yandex Cloud provider (v0.100.0)? If yes, which version of Terraform should I upgrade to in order to resolve this issue? Are there any other known workarounds or configurations that I can apply to fix this without upgrading Terraform? Any assistance or guidance would be greatly appreciated. Thank you!

opportunity356 commented 3 months ago

Hi!

Is this issue related to the version incompatibility between Terraform (v0.14.8) and the Yandex Cloud provider (v0.100.0)?

Yes, you should use at least terraform 1.0

https://developer.hashicorp.com/terraform/plugin/terraform-plugin-protocol#protocol-version-6\

Are there any other known workarounds or configurations that I can apply to fix this without upgrading Terraform?

Unfortunately, there are no workarounds. Only upgrade