terraform { required_version = ">= 1.5" required_providers { kubernetes = { source = "hashicorp/kubernetes" version = "~> 2.30" } helm = { source = "hashicorp/helm" version = "~> 2.14" } } backend "s3" { bucket = "legion-terraform-state" key = "legion/terraform.tfstate" region = "auto" endpoint = "https://651161e0a3d321561b4c90b5bcd5f15b.r2.cloudflarestorage.com" # R2 is S3-compatible but not AWS — skip AWS-specific checks skip_credentials_validation = true skip_metadata_api_check = true skip_region_validation = true force_path_style = true } } provider "kubernetes" { config_path = var.kubeconfig_path } provider "helm" { kubernetes { config_path = var.kubeconfig_path } }