mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-31 01:44:47 +07:00
20b4f10976
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
24 lines
402 B
HCL
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
|
|
}
|