khuedoan-homelab/external/modules/cloudflare/versions.tf
Khue Doan 20b4f10976 chore(cloudflare)!: upgrade Terraform provider version
It's a breaking change due to a known oversight in the 3.x -> 4.x
migration.

https://github.com/cloudflare/terraform-provider-cloudflare/issues/2286

To resolve you can either:

1. Manually update the state file with the new resource name
2. Remove the resources from state, perform the upgrade and then
   reimport the resources back into the state
3. (What I did, but you'll have downtime) Comment out the tunnel
   resources, apply, bump the version to v4, uncomment, then apply again
   to recreate the resources
2024-04-18 16:59:17 +07:00

24 lines
402 B
HCL

terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.30.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.26.0"
}
http = {
source = "hashicorp/http"
version = "~> 3.4.0"
}
}
}
provider "cloudflare" {
email = var.cloudflare_email
api_key = var.cloudflare_api_key
}