Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFlare API version mismatch #1978

Open
fabricesemti80 opened this issue Feb 7, 2025 · 0 comments
Open

CloudFlare API version mismatch #1978

fabricesemti80 opened this issue Feb 7, 2025 · 0 comments

Comments

@fabricesemti80
Copy link

Good Morning,

I tried to use this to export my cloudflare resources.

  1. Set env variables:
PS D:\FS_Workspace\tmp\cf> Get-ChildItem -Path Env: | where-object {$_.Name
-like "*CLOUD*"}

Name                           Value
----                           -----
CLOUDFLARE_ACCOUNT_ID          -- my account id --
CLOUDFLARE_API_TOKEN             -- my API token --

PS D:\FS_Workspace\tmp\cf>
  1. Set latest Cloudflare provider:

provider.tf:

terraform {
  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "~> 5"
    }
  }
}
  1. Terraformer then reports:
PS D:\FS_Workspace\tmp\cf> terraform init -upgrade
Initializing the backend...
Initializing provider plugins...
- Finding cloudflare/cloudflare versions matching "~> 5.0"...
- Using previously-installed cloudflare/cloudflare v5.0.0

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to se
e
any changes that are required for your infrastructure. All Terraform command
s
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, ot
her
commands will detect it and remind you to do so if necessary.
PS D:\FS_Workspace\tmp\cf> terraformer import cloudflare -r *
2025/02/07 10:38:41 Attempting an import of ALL resources in cloudflare
2025/02/07 10:38:42 Incompatible API version with plugin. Plugin version: 6,
 Client versions: [5]
PS D:\FS_Workspace\tmp\cf>

Could you advise? (There is no v6 of the cloudflare provider as per ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant