# Copy to `backend.hcl` (gitignored) and fill in from your Cloudflare R2 bucket + API token. # Passed to tofu via: source .r2.env && tofu init -backend-config=backend.hcl -migrate-state # # The R2 is the 32-hex string in your Cloudflare dashboard URL / R2 endpoint. It is # not a credential, but is kept out of git here as defense-in-depth. bucket = "homelab-tofu-state" key = "k3s-dev/terraform.tfstate" endpoints = { s3 = "https://.r2.cloudflarestorage.com" }