terraformer: Incompatible API version with plugin. Plugin version: 6, Client versions: [5]

When trying to use the following command:

terraformer import cloudflare --resources=*

or

terraformer import cloudflare --resources=dns,page_rule

I would get the following error:

Incompatible API version with plugin. Plugin version: 6, Client versions: [5]

Details: Using terraformer v0.8.24 with Terraform v1.5.4 and cloudflare provider v4.11.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 8
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Since provider it’s broken and looks like people are already using other tools, I’ve filed #1883. BTW, if you need IaC for CF DNS-only resources as it’s my case, I’m adding the tool I’m using now DNSControl to the alternatives shared by others.

Issue still stands. @sergeylanzman: care to remove the “Stale” label? This forces people to add no-value/noise comments just to keep just this issue open.

Also experiencing the same issue, the above worked for me:

Fixed this by temporarily downgrading to version 3.12.2 of the cloudflare provider. Later releases use API version 6 which isn’t compatible with version 5.

  • Created a provider.tf
terraform {
  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "3.12.2"
    }
  }
}
% tf init                                      

Initializing the backend...

Initializing provider plugins...
- Finding cloudflare/cloudflare versions matching "3.12.2"...
- Installing cloudflare/cloudflare v3.12.2...
- Installed cloudflare/cloudflare v3.12.2 (signed by a HashiCorp partner, key ID DE413CEC881C3283)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!
% terraformer version
Terraformer v0.8.24
% terraformer import cloudflare --resources="*"

Here It appears that it’s v4.13.0 that switched the protocol plugin version and isn’t supported. The cloudflare provider is using the terraform plugin library version 6, and terraformer has not been updated to handle that yet… does anyone know when this is going to be?

Fixed this by temporarily downgrading to version 3.12.2 of the cloudflare provider. Later releases use API version 6 which isn’t compatible with version 5.